It's all about the answers!

Ask a question

Automatically kick-off build when there is a change?


Jirong Hu (1.5k9295258) | asked Jul 26 '11, 3:11 p.m.
Is that possible to setup Jazz Build in the way that build will be kick-off (instead of run against schedule) when there is a new change (true continuously build).

Thanks
Jirong

8 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Jul 26 '11, 5:54 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For scalability, the RTC build mechanism is based on polling, rather
than broadcasting. In particular, it is unlikely that you really want
to kick off a build on every change, since that would rapidly flood your
build engines with a set of very slightly different builds.

The way you achieve this is to set a reasonably short build schedule,
and select "Build only if there are changes".

Cheers,
Geoff

On 7/26/2011 3:38 PM, hujirong wrote:
Is that possible to setup Jazz Build in the way that build will be
kick-off (instead of run against schedule) when there is a new change
(true continuously build).

Thanks
Jirong

permanent link
Jirong Hu (1.5k9295258) | answered Jul 27 '11, 10:00 a.m.
Yeah, the project team does agree with me as you advised.

But RTC does have a "continuous interval" setting?

Thanks
Jirong

permanent link
Brent Ulbricht (2.5k11) | answered Jul 27 '11, 4:02 p.m.
JAZZ DEVELOPER
Yeah, the project team does agree with me as you advised.

But RTC does have a "continuous interval" setting?

Thanks
Jirong


Hi,

Yes. If your build definition was created with a 'Schedule' configuration element (Schedule is usually checked by default when creating), then there should be a 'Schedule' tab where you can set the 'Continuous interval in minutes' property.

Brent Ulbricht
RTC Build Lead

permanent link
Jirong Hu (1.5k9295258) | answered Aug 05 '11, 11:33 a.m.
1. Currently the project team is using "continuous interval" with 10 minutes in CruiseControl, so they want to have the same in RTC. I guess we can achieve that.

2. They are asking if we can pause the above between 7pm to 7am. Is that possible? I believe what they want is no build if nobody is working. So my question is if there is no change, RTC won't build, right? This Accept Options:
a) Accept latest changes before loading (create a snapshot of build workspace)
b) Build only if there are changes accepted

3. Another question is do we need to make a baseline before build? Since in the above step 2a a snapshot is created.

Thanks
Jirong

permanent link
Geoffrey Clemm (30.1k33035) | answered Aug 05 '11, 11:09 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
1. Yes.

2. You can limit a continuous build to certain days, and you can specify
that you only want to build if there are changes. So currently you
cannot have a continuous build for only a limited time interval, but if
nobody is working, then there will just be a quick check to verify that
there are no changes, so there shouldn't be a compelling reason to do
this kind of limitation.

3. Creating a snapshot automatically creates a baseline in each
component that has changes, so creating a snapshot is sufficient.

Cheers,
Geoff


On 8/5/2011 11:38 AM, hujirong wrote:
1. Currently the project team is using "continuous interval"
with 10 minutes in CruiseControl, so they want to have the same in
RTC. I guess we can achieve that.

2. They are asking if we can pause the above between 7pm to 7am. Is
that possible? I believe what they want is no build if nobody is
working. So my question is if there is no change, RTC won't build,
right? This Accept Options:
a) Accept latest changes before loading (create a snapshot of
build workspace)
b) Build only if there are changes accepted

3. Another question is do we need to make a baseline before build?
Since in the above step 2a a snapshot is created.

Thanks
Jirong

permanent link
Jirong Hu (1.5k9295258) | answered Aug 06 '11, 8:31 a.m.

2. You can limit a continuous build to certain days, and you can specify
that you only want to build if there are changes. So currently you
cannot have a continuous build for only a limited time interval, but if
nobody is working, then there will just be a quick check to verify that
there are no changes, so there shouldn't be a compelling reason to do
this kind of limitation.


The problem now is the project team want to pause the build from 7pm to 7am no matter there is a change or not. Is there any mechanism we can use to achieve this script, pre-action, whatever?

Thanks
Jirong

permanent link
Geoffrey Clemm (30.1k33035) | answered Aug 06 '11, 5:10 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
A simple approach is to just add a command to the build script that
exits without building if the clock time is between 7pm and 7am. Just
for interest's sake, why does the team want to turn off continuous
builds at night?

Cheers,
Geoff

On 8/6/2011 8:38 AM, hujirong wrote:
gmclemmwrote:

2. You can limit a continuous build to certain days, and you can
specify
that you only want to build if there are changes. So currently you

cannot have a continuous build for only a limited time interval, but
if
nobody is working, then there will just be a quick check to verify
that
there are no changes, so there shouldn't be a compelling reason to
do
this kind of limitation.


The problem now is the project team want to pause the build from 7pm
to 7am no matter there is a change or not. Is there any mechanism we
can use to achieve this script, pre-action, whatever?

Thanks
Jirong

permanent link
Daniel martin (10122926) | answered Jul 09 '12, 5:19 p.m.

I know this topic is old, but i think the ability to turn off CI during certain times of the day is valuable, especially in large systems that leverage Build forge. We face problems around 4:15 EST every day because our BF server gets hit with around 50 build in a matter of 5 sec.  This prevents people from log into BF because the application is so busy kicking off builds. Serveral of these projects are based over seas, and have zero development going on at that time of the day, therefore it is creating useless load on the servers. Having the ability to create a cron style schedule would be an ideal solution.

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.