It's all about the answers!

Ask a question

How to trigger jenkins after post-build deliver


Xianjie Zhou (1112) | asked Dec 19 '17, 2:56 p.m.
edited Dec 19 '17, 2:56 p.m.

We now have the A stream and B stream, when the Jenkins build succeed for the A stream, we want the changes deliver to the B stream and then trigger the Jenkins build automatically.

We have setup the ‘Post-build deliver’ in the A stream build definition, and it does push the changes to B stream after the build, but the B does not accept those changes automatically, thus no build trigger as well.

How to setup the auto acceptance and trigger the Jenkins build?

 

2 answers



permanent link
Xianjie Zhou (1112) | answered Dec 20 '17, 9:31 a.m.

Thanks Lakshmi. But I try the method 1, trigger Stream B build but it did not accept the changes that pushed from stream A. So I don't think method 2 will work.


Comments
Lakshmi Narasimhan T V commented Dec 20 '17, 10:07 a.m.
JAZZ DEVELOPER

Method 2 is orthogonal to method 1, either one or the other should be in place. 


In Method 1, did you trigger the build for stream B after invoking the RTC post build deliver step in the Jenkins build for Stream A? Please note the support for post build deliver in Jenkins requires 1.2.0.3 and RTC 6.0.4 or higher.


permanent link
Lakshmi Narasimhan T V (4415) | answered Dec 19 '17, 10:25 p.m.
JAZZ DEVELOPER

There are a few options.
1. In the Jenkins job for Stream A, you could trigger a Jenkins build of Stream B after invoking the post build deliver step.
2. Setup polling in the Jenkins job for Stream B. This will detect changes from post build deliver of Stream A and trigger a Jenkins build.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.