jenkins shared library pipeline:包含jenkins管道代码的存储库 源码
可以利用锁定和里程碑 方法指针:def fun = stash。&merge println(fun()) def func(列出存储){for(def存储:存储){def fun =存储。&merge println(fun())}} def隐藏= [(new Stash(1))] func(stashes) 类Stash {def num Stash(num){this.num = num println(“ constructor”)} def merge() { return this.num } def getPrince() { return 'prince' } } @interface页面{int statusCode()默认200} @Page(statusCode = 404)void notFound(){println(statusCo
文件列表
jenkins-shared-library-pipeline-master.zip
(预估有个53文件)
jenkins-shared-library-pipeline-master
gradlew
6KB
settings.gradle
380B
.gitattributes
154B
src
org
common
Git.groovy
6KB
Context.groovy
269B
JobDescription.groovy
3KB
暂无评论