Jenkins: How to make single job build and deploy on two servers

前端 未结 6 787
刺人心
刺人心 2021-02-06 15:37

I have code in a repository. Now I want to create a job which will build code from the repository and deploy it on two servers.

Right now I create two jobs with exactly

6条回答
  •  一向
    一向 (楼主)
    2021-02-06 15:43

    You can use Copy Artifact Plugin, where you can copy build artifacts one project to another. So you just have on job which builds what you need and it can be shared across other jobs.

提交回复
热议问题