1,流水线审批功能

插件1 pipeline
插件2 Extended Choice Parameter Plugin
https://blog.51cto.com/u_11243465/2159568

  1. stage '审批'
  2. input message: '请先确认 预生产环境已上线测试通过。。。',ok: '是的'
  3. node {
  4. stage('检出代码'){
  5. git branch: '',
  6. }
  7. stage('Maven编译'){
  8. dir(',/'){
  9. sh ''
  10. }
  11. }
  12. stage('镜像构建'){
  13. dir(',/'){
  14. docker.build()
  15. }
  16. }
  17. stage('版本发布'){
  18. dir(',/'){
  19. sh ''
  20. }
  21. }
  22. }

https://blog.csdn.net/ZHONGZEWEI/article/details/110822751
https://blog.51cto.com/u_3388803/2519849
https://cloud.tencent.com/developer/article/1803607
https://www.ssgeek.com/post/jenkinssharelibrary-shi-jian-zhi-zi-ding-yi-tong-zhi-qi/