Jenkins 2管道displayName和buildid

时间:2016-11-28 08:37:30

标签: jenkins jenkins-pipeline

我想修改显示的jenkins 2管道displayname和build id。这样做的首选方法是什么?

感谢。

1 个答案:

答案 0 :(得分:0)

来自cloudbees: https://support.cloudbees.com/hc/en-us/articles/220860347-How-to-set-build-name-in-Pipeline-job

node {
    currentBuild.displayName = "fooName"
    currentBuild.description = "fooDescription"
}