Jenkins pipeline plugin: set the build description

后端 未结 4 1589
自闭症患者
自闭症患者 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:29

    This may not have been the case when jjst wrote his answer but now with the latest jenkins and plugins you can set this outside the main pipeline at the top. This means you dont have to embed script setting and have special steps etc eg

    currentBuild.description = "my new description"
    pipeline {...
    

    or

    currentBuild.description = """
    blah
    blah
    blah
    """
    pipeline {
    

提交回复
热议问题