2016-11-28 203 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