--- kind: pipeline type: kubernetes name: wapage2web clone: disable: true steps: - name: clone image: hub.evbj.easou.com/dev/alpine-git:20200622 commands: - git clone $DRONE_GIT_HTTP_URL . - name: build image: hub.evbj.easou.com/dev/drone-agent-custom:v6.0.0 # pull: always privileged: true environment: JNLP_ENV: pro JNLP_REPO: hub.evbj.easou.com JNLP_TAG: v1.0.1 JNLP_VERSION: v1 JNLP_CONTAINER_PORT: 8080 JNLP_INGRESS: nginx JNLP_SVC_MODE: http JNLP_STORAGE_CLASS: rbd JNLP_DOMAIN: .ieasou.cn JNLP_CONTROL: StatefulSet JNLP_REPLICAS: 3 JNLP_STORAGE_CAPACITY: 100Gi JNLP_MOUNT_PATH: /data JNLP_LIVENESS_INIT: 60 JNLP_LIVENESS_PER: 10 JNLP_READINESS_INIT: 60 JNLP_READINESS_PER: 10 commands: - wrapper.sh /bin/sh - docker --config /etc/docker build -t "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG" . -f Dockerfile - docker --config /etc/docker push "$JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG" - python tools.py -b - python tools.py -a - python tools.py -c - python tools.py -d - name: success image: hub.evbj.easou.com/dev/drone-wechat:20200622 settings: corpid: ww419ee4063735e1c0 corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M agent_id: 1000004 title: "Pipeline ${DRONE_REPO_NAME} Success" description: "${DRONE_BUILD_LINK} 部署完成" msg_url: ${DRONE_BUILD_LINK} btn_txt: "否" when: status: - success - name: failure image: hub.evbj.easou.com/dev/drone-wechat:20200622 settings: corpid: ww419ee4063735e1c0 corp_secret: zpiRBLETH9eLwIMQ4eJ_r_dcm3BPSGeLHvTcft8Ot-M agent_id: 1000004 title: "Pipeline ${DRONE_REPO_NAME} Failure" description: "${DRONE_BUILD_LINK} 部署失败,请检查配置!" msg_url: ${DRONE_BUILD_LINK} btn_txt: "否" when: status: - failure