How to pass build artifact into another job in Jenkins

后端 未结 2 1038
北海茫月
北海茫月 2021-01-01 11:27

Setup

I have two jobs in Jenkins:

  • build master - this builds the code and creates an artifact
  • deploy master - this
2条回答
  •  独厮守ぢ
    2021-01-01 11:59

    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

提交回复
热议问题