2020年8月19日
摘要: 安装 build-name-setter 插件,然后使用如下: script{ wrap([$class: 'BuildUser']) { def deploylog="${BUILD_USER} use pipeline '${JOB_NAME}(${BUILD_NUMBER})' " print 阅读全文
posted @ 2020-08-19 14:05 momingliu11 阅读(2733) 评论(0) 推荐(0) 编辑
摘要: 方法一: import hudson.model.* def specificCause = currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') println "specificCause: $specificCause" / 阅读全文
posted @ 2020-08-19 11:29 momingliu11 阅读(3623) 评论(0) 推荐(1) 编辑