Jenkins pipeline plugin: set the build description

后端 未结 4 1579
自闭症患者
自闭症患者 2021-02-02 05:51

I\'m trying to replace our current build pipeline, currently hacked together using old-school Jenkins jobs, with a new job that uses the Jenkins pipeline plugin, and loads a

4条回答
  •  無奈伤痛
    2021-02-02 06:36

    I'm not sure how old it is, but I recently discovered the buildDescription plugin that gives you a declarative method to set the build description. Once installed, it's as easy as:

    steps {
      buildDescription 'my build'
    }
    

    The console will show a step output: New run description is 'my build'

提交回复
热议问题