Skip to content

Instantly share code, notes, and snippets.

@willis7
Created June 20, 2018 10:54
Show Gist options
  • Save willis7/cb2a15204ad75cdf5082fc5963f30c71 to your computer and use it in GitHub Desktop.
Save willis7/cb2a15204ad75cdf5082fc5963f30c71 to your computer and use it in GitHub Desktop.
Groovy script to manipulate Jenkins config.xml and set the number of executors to 0
import jenkins.model.*
Jenkins.instance.setNumExecutors(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment