I would like to copy Jenkins WORKSPACE
items from a job to another using Copy Artifact Plugin as follows:
WORKSPACE
: /output/bundle/<all files and folders>
${AUT}
path which is: c:/AUT
Plugin setup
project-build
Copy from WORKSPACE of latest completed build
output/bundle/**
${AUT}
The copy is performed but the content of the Target Directory will be:
c:/AUT/output/bundle/<all files and folders>
How can I modify the Artifacts to copy or Target directory in order to have the following result:
c:/AUT/<all files and folders>
?
Just to be more clear, I would like to copy only the content of /output/bundle/<all files and folders>
not having the /output/bundle/
path in the Target directory.
There should be a "flatten directory" option in the advanced setting, which will expand whatever you have in the source directory to the target directory. However, this will also expand the folder in the source directory, to solve that you need to be more specific on the source folder and the destination folder. For example, src: output/bundle/a/**, dst: ${AUT}/a/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With