Answers for "jenkins clear all build log"

0

jenkins clear all build log

Jenkins.instance.getAllItems(Job.class).each{ jobitem->  
def job = Jenkins.instance.getItem(jobitem.name)  
job.getBuilds().each { bh ->  bh.delete() }  
job.nextBuildNumber = 1   
job.save()
}
Posted by: Guest on May-17-2021

Browse Popular Code Answers by Language