I am migrating jenkins-workflow job to new template based workflow job. Because the build number is used as part of the version of build artifacts the workflow produces I have
Try running below script in Jenkins Script Console.. Change "workFlow" to your Jobname
def job = Jenkins.instance.getItem("workFlow") job.nextBuildNumber = 10 job.saveNextBuildNumber()