search
Get Started
search
Jenkins Copy Artifact Plugin - Jenkins CI CD
zoom_in Click to enlarge

Jenkins Copy Artifact Plugin

language

description Jenkins Copy Artifact Plugin Overview

The Jenkins Copy Artifact Plugin facilitates the automated transfer of build artifacts – such as JAR files or WAR files – from one location to another within your Jenkins CI/CD pipeline, supporting various protocols like FTP, SFTP, and SCP.

help Jenkins Copy Artifact Plugin FAQ

How do I use the Jenkins Copy Artifact Plugin in a pipeline?

To use the plugin in a Jenkinsfile, you must utilize the `copyArtifacts` step within your pipeline script. You specify the `projectName` of the source job and define which artifacts you want to pull using the `filter` parameter. This allows your current build to seamlessly access files generated by a separate upstream job.

What permissions are required for the Jenkins Copy Artifact Plugin?

To prevent unauthorized access, the plugin uses a specific permission setting called "Copy Artifact" under the Job configurations. Administrators must explicitly grant the downstream job the right to copy artifacts from the upstream job. This permission can be managed via Role-Based Strategy or Project-based Matrix Authorization.

Does the Copy Artifact Plugin support SCP and SFTP transfers?

While the plugin natively focuses on moving artifacts between jobs on the same Jenkins controller or across Jenkins nodes, broader file transfers rely on related plugins. For external SFTP or SCP transfers, users typically use the "Publish Over SSH" or standard FTP plugins. The Copy Artifact Plugin itself is strictly for internal Jenkins workspace transfers.

How do I fix the "Unable to find project" error in the Copy Artifact Plugin?

This error usually occurs when the `projectName` parameter in your pipeline script does not exactly match the name of the upstream Jenkins job. It can also happen if the user running the downstream job lacks the necessary "Copy Artifact" permissions. Double-check your exact job names in the Jenkins dashboard and verify your access control settings.

Reviews & Comments

Write a Review

rate_review

Be the first to review

Share your thoughts with the community and help others make better decisions.

Save to your list

Save your favorites and follow how their scores change over time.

Save favorites
Track changes
Compare scores

Already have an account? Sign in

Compare Items

See how they stack up against each other

Comparing
VS
Select 1 more item to compare