Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy the artifacts from slave to Jenkins workspace?

Tags:

jenkins

I'm running a jenkins job on a slave and i want to store the generated artifacts in the server.Since the job is currently running on the slave the artifacts are also created there.

I tried using post build actions --->archive the artifacts.But it throws the following build error

ERROR: No artifacts found that match the file pattern "**/*.gz". Configuration error?

ERROR: '**/*.gz' doesn't match anything: '**' exists but not '**/*.gz'

Any help in this regards is highly appreciated.

like image 400
Optimus Avatar asked May 07 '15 09:05

Optimus


2 Answers

Sounds like Copy To Slave Plugin is what you need

It can copy to slave (before build) and from slave (after build)

Copy files back to master node: To activate this plugin for a given job, simply check the Copy files back to the job's workspace on the master node checkbox in the Post-build Actions section of the job. You then get the same two fields as for the Copy files to slave node before building section (note that label in the screenshot is old):

like image 150
romanlv Avatar answered Oct 08 '22 16:10

romanlv


if you want to copy artifacts from JobA to the workspace of some other Job, you can do it using the Copy Artifact Plugin which is very simple to understand.

In case you just want to archive the artifacts already in JobA, then you are already in this direction and need to check what you are missing... are you sure that the artifacts are in the current workspace?

Doron

like image 23
Doron Shai Avatar answered Oct 08 '22 15:10

Doron Shai