testing_38

38
This commit is contained in:
psycho 2020-08-14 09:59:59 +02:00
parent e1b1bd5c92
commit c7ef12a47d

5
Jenkinsfile vendored
View File

@ -141,9 +141,10 @@ node('test')
def jobName = JOB_NAME
def job = Jenkins.instance.getItem(jobName)
//logger.printInfo('job is getting deleted ' + currentBuild.id.toString())//job.nextBuildNumber)
//job.nextBuildNumber -= 1 //updateNextBuildNumber(job.getNextBuildNumber() - 1) //resetting next build number does not work. if done, the next build start will do nothing
//job.saveNextBuildNumber()
job.getLastBuild().delete()
job.nextBuildNumber -= 1 //updateNextBuildNumber(job.getNextBuildNumber() - 1) //resetting next build number does not work. if done, the next build start will do nothing
job.saveNextBuildNumber()
item.updateNextBuildNumber(job.nextBuildNumber - 1)
job.save()
}