Copy artifact within a jenkins pipeline
问题 I have a Jenkins pipeline job that archives an Artifact in its first phase, I then need to copy that Artifact in another stage of the pipeline build node { stage 'Stage 1 of build' // Run tests, if successful archive the artifact archiveArtifacts artifacts: 'build/test.js', excludes: null stage 'Stage 2 of build' // want to copy artifact from stage 1 of the build step([$class: 'CopyArtifact', filter: 'build/test.js', fingerprintArtifacts: true, flatten: true, projectName: 'echo-develop-js