1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- ---
- kind: pipeline
- name: wapage2misc
- steps:
- - name: build
- image: hub.evbj.easou.com/dev/drone-agent-custom:v5.0.0
- # pull: always
- privileged: true
- environment:
- JNLP_ENV: qa
- JNLP_REPO: hub.evbj.easou.com
- JNLP_TAG: v1base0.0.0
- JNLP_CONTAINER_PORT: 9001
- JNLP_INGRESS: nginx
- JNLP_SVC_MODE: http
- JNLP_STORAGE_CLASS: rbd
- JNLP_DOMAIN: .ieasou.cn
- JNLP_CONTROL: StatefulSet
- JNLP_REPLICAS: 2
- 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 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
|