摘要: echo 1 2 4|sed s/[[:space:]]//g 阅读全文
posted @ 2021-08-11 14:33 没有猫的猫奴 阅读(86) 评论(0) 推荐(0)
摘要: stage('获取git提交信息') { steps { script { git_commit = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim() echo "git_commit: ${ 阅读全文
posted @ 2021-08-11 14:28 没有猫的猫奴 阅读(151) 评论(0) 推荐(0)
摘要: stage('获取触发任务用户') { steps { script { def BUILD_TRIGGER_BY = "${currentBuild.getBuildCauses()[0].shortDescription}" BUILD_TRIGGER_BY = sh (script: "ech 阅读全文
posted @ 2021-08-11 14:26 没有猫的猫奴 阅读(171) 评论(0) 推荐(0)