2016-11-28 209 views

回答

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" 
} 
+0

它的工作原理,用這種synthaxe,但.... ' 階段( 「構建」){ 節點{ currentBuild.displayName = 「fooName111」 currentBuild .DESCRIPTION = 「fooDescription222」 }} ' 但 它不工作與此synthaxe: – babazs

+0

但不與本synthaxe工作: 管道{ \t代理任何; \t階段{ \t \t階段( 「構建」){ \t \t步驟{ \t \t currentBuild.displayName = 「fooName323」 currentBuild.description = 「fooDescription」 \t \t } } \t} } – babazs

+0

那麼build_id修改呢? – babazs