Posts

Showing posts from November, 2017

OpenShift kill hanging Jenkins pipeline job

It is possible to get zombie Jenkins job which is integrated in OpenShift. When you will run Groovy script to extract all jobs, possible you can't find any. What to do? Go into the JENKINS_HOME folder (usually /var/lib/jenkins). cd /var/lib/jenkins/jobs Co into failing job folder. cd my_job Remove all workspace forlders. rm -rf workspace* Remove hanging build folder in the builds folder. cd builds rm -rf 345 Restart Jenkins pod.