Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using cruise control to trigger a batch deploy script and currently the file executes perfectly BUT cruise control does not see the script end. It just keeps spinning (building) and this goes on forever.

My script launches downloads the build extracts it and then starts tomcat with the application deployed. The script also ends with:

exit /B 0

and yet cruise control does not see the script exiting...

Anyone has an idea

share|improve this question
    
It seems that the child windows that are opened prevent the build from completing. When the windows are closed(manually) the build completes instantly –  Stainedart Mar 6 '13 at 18:37

1 Answer 1

To close the loop on this matter, the tags in the cruise control schedule are dumb when it comes to batch files. If the batch file starts application that are in separate windows the build process will not stop until the windows of those programs are stopped. The script I was using was launching tomcat in its own windows as it was a deployment script. Fortunately if you launch the windows from a vbs file instead of a batch the new window is not considered as a child process which is what we want for cruise control to finish its build.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.