|
@@ -10,7 +10,7 @@ steps:
|
|
|
environment:
|
|
|
JNLP_ENV: qa
|
|
|
JNLP_REPO: hub.evbj.easou.com
|
|
|
- JNLP_TAG: v1.0.1
|
|
|
+ JNLP_TAG: v1.0.0
|
|
|
JNLP_CONTAINER_PORT: 8011
|
|
|
JNLP_INGRESS: nginx
|
|
|
JNLP_SVC_MODE: http
|
|
@@ -28,6 +28,36 @@ steps:
|
|
|
- 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 ppctl.py -b
|
|
|
+ - python ppctl.py -a
|
|
|
+ - python ppctl.py -d
|
|
|
+ - python ppctl.py -c
|
|
|
|
|
|
+ - name: success
|
|
|
+ image: clem109/drone-wechat
|
|
|
+ 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: clem109/drone-wechat
|
|
|
+ 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
|
|
|
|