Quantcast

How to stop a build when it executes a buildstep

classic Classic list List threaded Threaded
2 messages Options
JD
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How to stop a build when it executes a buildstep

JD
This post has NOT been accepted by the mailing list yet.
Hi All,

I wrote a plugin which will find out the String translation and layout errors in android code.Now all is working fine.But main problem when it is executing the plugin I am not able to stop the plugin.While executing the build step plugin I am reading some files and writing into one file.Now while I/O operation when I am trying to stop the build from the red color "x" button in Jenkins UI build is not getting stop.It continues executing.

In Jenkins AbstractBuild.java there is a function doStop() which calls another function doStop() from the Executor.java which finally use thread interrupt method to stop the execution of build.But since the plugin is doing some I/O operation may be its not able to stop the build.

Can anyone help me how solve this problem and is there any mistake I am doing

Thanks
Diptiman
JD
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to stop a build when it executes a buildstep

JD
This post has NOT been accepted by the mailing list yet.
Hello Guys,

I have solved it finally....I can stop the build at any stage of build..

Cheers
Diptiman
Loading...