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

How to prevent scheduled builds from starting if a build is in progress

I have the following scenario:

I have a build definition which uses multiple build engines.  The build definition is scheduled several times per day.  

If a build is running and I attempt to initiate a build manually, I am warned with the following

"A build is already in progress.  Are you sure you want to request another one"

However, when a scheduled build starts, it will use another free build engine automatically and I'll have two builds running concurrently.  

My question.  Is there a way to prevent a scheduled build from starting if one is already running??

2 votes



One answer

Permanent link
The only way I can think of to do that within RTC is to have only one build engine associated with the build.  There isn't a way to configure the build definition to enforce that.

Your other option is to have your build script enforce that.  Have the build script check at the very beginning if another build is running.  If so, the build script exits without doing anything.  This is not a good solution, since it leaves behind a bunch of nearly empty build results in RTC.  I don't know the best way to check if another build is running; you might need to come up with your own mechanism that is outside of RTC.

-- David Olsen, IBM Rational, Jazz Process Team

1 vote

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
× 12,020
× 562

Question asked: Aug 02 '12, 12:10 p.m.

Question was seen: 5,139 times

Last updated: Aug 02 '12, 12:19 p.m.

Confirmation Cancel Confirm