Copy artifact to a new location when pulled from an upstream jo b

14 views
Skip to first unread message

Eric Wood

unread,
Dec 19, 2014, 10:54:00 AM12/19/14
to Jenkinsci-users
I have an upstream job that is archiving an artifact.  The artifact resides in a subfolder under the workspace.  I'd like to be able to have the artifact at the root of my workspace in my downstream job when I copy it from the upstream job.  Is there a way to move this asset to a new location without having to code it in something like ANT?

Ginga, Dick

unread,
Dec 19, 2014, 11:05:25 AM12/19/14
to jenkins...@googlegroups.com

If you are using the Copy Artifact build step in your downstream project then you can select Flatten Directories:

 

Select "Flatten directories" to ignore the directory structure of the artifacts in the source project and copy all matching artifacts directly into the specified target directory. By default the artifacts are copied in the same directory structure as the source project.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/293594395.787483.1419004433935.JavaMail.yahoo%40jws100162.mail.ne1.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages