인프라

Jenkins job이 안죽고 계속 도는 경우

seungdols 2021. 2. 6. 14:07

가끔 젠킨스를 돌리다 취소를 해도 계속 도는 경우가 있다. (아무래도 Zombie job이라 부르는 것 같다.)

how-to-stop-an-unstoppable-zombie-job-on-jenkins-without-restarting-the-server

Go to "Manage Jenkins" > "Script Console" and run a script:

 Jenkins.instance.getItemByFullName("JobName")
        .getBuildByNumber(JobNumber)
        .finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); 
반응형