Re: stop build after restart

Vindhya S <[email protected]> Thu, 5 Apr 2012 11:21:37 -0700 (PDT)
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi John,
 
Thanks a lot for the reply.
In the below example 8A is happening after cruise restart.
 
i.e. does the build get triggered as soon as cruisecontrol is running
again, or at the next check interval?--yes
 
 
If your project was queued to build and the server restarts would you
expect a build to be triggered again?--I am thinking queue means build not started for that project and it is in build queue(ready to trigger build when get a chance), If this is true , yes I am excepting a build to be triggired if project is in build queue. 
 
  If the build already started and cruise stuck/reboot build machine in the middle of the build, If I restart the cruise again this time I am not expecting the build to trigger since it already tried to build. 
 Is there any option to tell cruise not to build after restart until it finds very new check-in(even it didn't complete build for last check-in due to cruise stuck/reboot).
 
Is there any option for this in cc config?.
 
Thanks
Vin

 
 
 

From: John Patrick <[email protected]>
To: Vindhya S <[email protected]>; [email protected] 
Sent: Wednesday, April 4, 2012 5:10 AM
Subject: Re: [Cruisecontrol-user] stop build after restart

Just want to confirm your requirements/issue.

Assumptions:
One CruiseControl
One Project named X
CruiseControl checks Project X ever :00, :15, :30, :45 mins
Project X takes 10 mins to build

Timeline:
1) 00:00 cruisecontrol started
2) 00:01 cruisecontrol running
3) 00:10 check in to project x
4) 00:15 cruisecontrol detects change in project x at 00:10 and
triggers build of project x
5) 00:18 cruisecontrol dies, restarted, crashed, hangs, i.e. 3 mins
into project x build
6) 00:20 cruisecontrol is started again
7) 00:21 cruisecontrol running
8A) 00:21 cruisecontrol detects change in project x at 00:10 and
triggers build of project x
8B) 00:30 cruisecontrol detects change in project x at 00:10 and
triggers build of project x

In the above example timeline, do you see step 8A or 8B happening?

i.e. does the build get triggered as soon as cruisecontrol is running
again, or at the next check interval?

Without double checking the code I would assume that CruiseControl
only updates the project serialized file on build success or failure,
not if it starts/triggers a build.

If your project was queued to build and the server restarts would you
expect a build to be triggered again?

It might be simple to add this feature, but it would need to optional.
Gives me something to do over Easter, I'll see if I can get it
working.

John

On 4 April 2012 12:41, Vindhya S <[email protected]> wrote:
> Hi,
>
> I have one requirment, cruise machine got rebooted/stucked when  build is in
> progress, after I restarting the cruise it is starting the build even if
> there is no modification. How to avoid this?.
>
> If cruise stucks and restart, I don't want build after restart unless there
> is real change.
>
>
> Please help fixing this problem.
>
> Thanks,
> Vin
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user