What I want to accomplish is to checkout code from develop branch, merge it to master branch, build app.war, run tests and if tests succeed push to master branch.
Tests should be run in separate job which needs app.war.
My current setup is as follows:
- Job
Mainchecks out fromdevelop, merges it tomasterand buildsapp.war - Job
Maintriggers jobTestin Post build step (Testneedsapp.warpreviously built) - If
Testsucceeds,Mainpushes tomasterbranch in Post build action
I tried to use Copy Artifact Plugin but the problem is that with it, I can only archive artifact in Post build action while I am triggering Test in Post build step.
How to pass app.war to Test job? Is it possible to do with Copy Artifact Plugin?