Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

call build definition from command line

 I need to call multiple "build definition" from jenkins job. 

I have used Team Concept plugin. However, its limitation is that it calls only one build definition. 

I need to trigger build as soon as some developers deliver change set. I searched on various website, the best solution I found was to use scheduler. But this is not exactly what I was looking for.
If anyone know better solution, feel free to comment on that part.


0 votes


Accepted answer

Permanent link

I wonder how long your server will be able to sustain the build load if you start a build for every deliver or, how long the users will have to wait.....


The best approach, I think, would be using a server extension for the deliver operation similar to  https://rsjazz.wordpress.com/2016/07/15/build-on-state-change-work-item-save-participant/ that requests the build.

David Lafreniere selected this answer as the correct answer

0 votes

Comments

I agree with Ralph, you likely would want to avoid long running/heavy builds if they were to be triggered on every delivery.

You could also take a look at:
https://jorgediazblog.wordpress.com/2013/01/24/rtc-build-on-deliver-participant/

Also, related to your forum post title, there is no command line option for Jazz Build, but this request is tracked here:
Provide command line tools for the build toolkit (21161) (although my personal and non-official opinion is that thisparticular enhancement request may not be as high priority as some of the other work that is already known for Jazz Build).


You could use ANT and request a build from the command line, couldn't you?

It should also be pretty basic to use the Java API to do so. The extension code does it already. Easy enough to wrap that code up into a small java program. 

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,487
× 562

Question asked: Aug 23 '17, 5:58 a.m.

Question was seen: 1,821 times

Last updated: Aug 29 '17, 1:25 p.m.

Confirmation Cancel Confirm