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'
How to copy the artifacts from slave to Jenkins workspace?