jenkins2 pipeline中常用的语法快速参考. 文章来自:http://www.ciandcd.com文中的代码来自可以从github下载: https://github.com/ciandcd 来自: Using the Pipeline Plugin to Accelerate Continuous Delivery — Part 1Using the Pipeline Plugin to Accelerate Continuous Delivery — Part 2Using t…
背景:在做ci集成的发现分支超过100个之后,pipline activity列表中前期的分支会被隐藏,这导致master分支在活动视图中不可见 解决方案:删除历史分支的Jenkinsfile 分支太多了,写了个脚本处理,具体如下 from git import Repo import os import time # vi .git/config # lb = !"for k in `git branch -r|perl -pe s/^..//`;do echo `git show --pre…