How Do I Clear Jenkins Cache Using Jenkinsfile

Source URL: N/A

Language: whatever

Created on: 2020-11-02 13:57:09

 def jobName = "python-devops"  
def job = Jenkins.instance.getItem(jobName)  
job.getBuilds().each { it.delete() }  
job.nextBuildNumber = 1   
job.save()
How Do I Clear Jenkins Cache Using Jenkinsfile
content_copy