Codeship1 min readintermediate
Copying Artifacts Between Builds in a Jenkins Workflow
Summary
The copyartifact plugin now supports Jenkins Pipeline via a core step (v1.34). Use the generic `step([$class: 'CopyArtifact', …])` syntax to pull artifacts from another job, with all existing options available through the Snippet Generator. A native pipeline step is planned.
- CopyArtifact can be invoked in Declarative/Scripted Pipelines using the generic `step` syntax.
- All existing plugin options (filters, project name, etc.) are still supported.
- The Snippet Generator in the Pipeline UI is the easiest way to discover the correct syntax.
- Future work aims to expose a dedicated pipeline step for copyartifact.
Artifact sharing between jobs is a common pattern in CI/CD. Being able to do it directly in Pipeline code removes the need for ad‑hoc shell scripts or separate freestyle jobs, keeping the build definition declarative and version‑controlled.
4/10

