How to pass build artifact into another job in Jenkins

There is just one workspace per project/job in Jenkins. The directories of builds contain just information about the builds and their results.

The root directories of both are specified in Manage JenkinsConfigure SystemAdvanced....

To deploy an artifact of a previous build you have to copy it to somewhere else in build master and access it there from deploy master later.

UPDATE:

See the inline help for Which buildParameter Name:

A parameter with this name should be added in the build parameters section above. There is a special parameter type for choosing the build selector.

Use this Build selector for Copy Artifact instead of a String Parameter.


Add following in downstream project. "Build selector for Copy Artifact" instead of a "String Parameter"

"Build selector for Copy Artifact" instead of a "String Parameter"!!

Copy artifacts from another project

enter image description here

Thats it. Click "Build with Parameters" and pass build number enter image description here