Is It possible to abort build run by checking some condition?

Hi!

Our Use Case.

We have quite a lot heavy night builds and some times they hanged or spent much more time than expected.
Some tasks remain in queue till morning. And we had to cancel them manually.

Is it possible to set some condition which will be checked on build start. If condition fails build should be aborted, and some warning should be generated.

--
Best regards,

Alexander Shishenin
QA Lead at Client Team
Moscow Development Studio
Nival Online
http://www.nivalonline.com

Edited by: Alexander Shishenin on Aug 12, 2008 12:05 PM

2 comments

Alexander,

It seems that the most simple solution is to perform all the necessary checks inside the build script and fail the build (exit with non-zero exit code) if build should not proceed. Is this acceptable in your case?

You can also set custom message for the build status right from the build script via service messages.

You also might be interested in defining an execution timeout for your builds to force their stopping if they run for more then defined duration. (See "Fail build if"/"it runs longer than minutes" on General settings)

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Yegor,

Yes it is possible to check condition in bildscript.

Fail build by timeout isn't good idea in our case, because there is no way, to revert all changes made by build with working copy.

I made Enchancment request in your tracker for my use case
http://jetbrains.net/tracker/issue/TW-5568

--
Best regards,

Alexander Shishenin
QA Lead at Client Team
Moscow Development Studio
Nival Online
http://www.nivalonline.com

0

Please sign in to leave a comment.