Next Build Number Plugin does not work with Pipeline jobs. How do I set next build number?
- CloudBees Jenkins Enterprise
You can run the following from the Script Console (
def job = Jenkins.instance.getItemByFullName("folderName/my-pipeline-job") job.nextBuildNumber = 10 job.save()
folderName/my-pipeline-job with your folder/job name and
10 with the desired next build number.