问题
I have 2 jobs in Jenkins:
- Build and run unit tests
- (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