If you have access to the script console (Manage Jenkins -> Script Console), then you can do this following:
Jenkins.instance.getItemByFullName("YourJobName").updateNextBuildNumber(45)
More Related Contents:
- How do I schedule jobs in Jenkins?
- How to give Jenkins more heap space when it´s started as a service under Windows?
- How do you load a groovy file and execute it
- Show a Jenkins pipeline stage as failed without failing the whole job
- Is it possible to create parallel Jenkins Declarative Pipeline stages in a loop?
- How to access parameters in a Parameterized Build?
- How to manipulate the build result of a Jenkins pipeline job (back to ‘SUCCESS’)?
- How do I make a Jenkins job start after multiple simultaneous upstream jobs succeed?
- Is it possible to capture the stdout from the sh DSL command in the pipeline
- How to change workspace and build record Root Directory on Jenkins?
- Export/import jobs in Jenkins
- Jenkinsfile Declarative Pipeline defining dynamic env vars
- How to add a timeout step to Jenkins Pipeline
- In a declarative jenkins pipeline – can I set the agent label dynamically?
- Jenkins dynamic declarative pipeline parameters
- Jenkins Host key verification failed
- How to stop an unstoppable zombie job on Jenkins without restarting the server?
- How to get a list of installed Jenkins plugins with name and version pair
- How to invoke a jenkins pipeline A in another jenkins pipeline B
- Cancel queued builds and aborting executing builds using Groovy for Jenkins
- Get absolute path to workspace directory in Jenkins Pipeline plugin
- How to trigger a jenkins build on specific node using pipeline plugin?
- Experience with Hudson – Building matrix project
- Jenkins scripted pipeline or declarative pipeline
- How do I find the Docker REST API URL?
- Closures in Groovy not capturing outside variables
- How to list all `env` properties within jenkins pipeline job?
- What shell does Jenkins use?
- Jenkins: 403 No valid crumb was included in the request
- How to use file parameter in jenkins