Skip to content

Instantly share code, notes, and snippets.

// add-jenkins-param.groovy
// Adds a parameter to all jobs on a Jenkins instance.
// The parameter is then exposed to the job's environment as `$PARAM_KEY`.
import hudson.model.*
key = 'GEM_SOURCE'
value = 'http://rubygems.delivery.puppetlabs.net:5000'
desc = 'The rubygems URL'