Jenkins Copy Artifact parse copied build id
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using in Jenkins 2.73.1, in a multibranch pipeline Copy Artifact Plugin to get the last successful artifacts from two other pipelines, see my Jenkinsfile: def branchname = "${BRANCH_NAME}".replace("/", "%2F") pipeline { agent { label 'windows' } stages { stage('get artifacts') { steps { script { parallel('get-backend': { step([$class: 'CopyArtifact', projectName: "backend/${branchname}", target: 'input/backend']) }, 'get-frontend': { step([$class: 'CopyArtifact', projectName: "frontend/${branchname}", target: 'input/frontend']) }) } } }