How to pass build artifact into another job in Jenkins

时光怂恿深爱的人放手 提交于 2019-12-03 22:26:43

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"

Copy artifacts from another project

Thats it. Click "Build with Parameters" and pass build number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!