How can I use just created build in downstream job

僤鯓⒐⒋嵵緔 提交于 2020-01-17 03:58:05

问题


I have 2 jobs in Jenkins:

  1. Build and run unit tests
  2. (Build and) run integration tests

Job-2 is a Downstream project of Job-1.

Job-1 initiates build and run unit tests on it. Job-2 initiates build as well and run integration tests.

I would like to change that, and make Job-2 to run the tests on the result build that was initiated by Job-1.


回答1:


You could use Copy Artifact Plugin and use Job-1 artifacts from Job-2 to run some tests on them. Refer to this post for more information. Hope it will help.



来源:https://stackoverflow.com/questions/14374621/how-can-i-use-just-created-build-in-downstream-job

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