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

Possibility to run one build from another one

I’ve got a question corresponding to builds on jazz platform. I would like to make two builds where one will be dependent from another one. When I click ‘request build’ on ‘build1′ it would run dependent ‘build2′ earlier. Do you think is it possible to do something like that?

0 votes



2 answers

Permanent link
We have the requestTeamBuild Ant task to queue a new build for a given build definition, and optionally override build properties.  There's also waitForTeamBuild.  See resources at the other thread referenced here for more details.  With this you could request build1 and it would queue build2 at the end.  Or you could have a third build definition that queues build 1, waits for it to complete, then queues build 2.  The problem with that approach is that it would occupy one JBE instance while waiting.

1 vote

Comments

Another option would be to have build 2 request and wait for build 1 (as its first step), which would avoid the machine resource usage problem.

Here's a link to the v4.0.5 documentation on the requestTeamBuild Ant task.
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m5/topic/com.ibm.team.build.doc/topics/r_requestBuild.html


Permanent link
Hi Mateusz,
I don't think it is available for now. Anyway what kind of build are you using now? There is API available to request the build e.g. from ant script: https://jazz.net/forum/questions/27061/request-build-from-command-line/27063
Why not build simple build definition which will run 2 builds sequentially?

Let us know if it helps.

0 votes

Comments

Thanks for your quick response Krzysztof.
"Why not build simple build definition which will run 2 builds sequentially?". It's exactly what I want to do. How can I do this? Which type of build definition should I choose? Which options of build definition should I define?

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
× 562
× 85

Question asked: Jan 10 '14, 5:21 a.m.

Question was seen: 3,127 times

Last updated: Jan 10 '14, 1:10 p.m.

Confirmation Cancel Confirm