How to stop a running build?

Hi,

I tried to use SRunningBuild.stop(), but then TC adds a new build ("Re-added because of unexpected finish")

How can I prevent the extra build to be added?

Thanks
/Johan

0
2 comments
Avatar
Permanently deleted user

Fixed by setting:
setInterrupted(RunningBuildState.INTERRUPTED_BY_USER,null,null); before stopping it.

0

Could you please help me where to use that line(etInterrupted(RunningBuildState.INTERRUPTED_BY_USER,null,null);) in teamcity to not let retrigger a build. I am not able to understand. Would really appreciate quick help !

0

Please sign in to leave a comment.