Skip to content

Instantly share code, notes, and snippets.

# How to sign your custom RPM package with GPG key
# Step: 1
# Generate gpg key pair (public key and private key)
#
# You will be prompted with a series of questions about encryption.
# Simply select the default values presented. You will also be asked
# to create a Real Name, Email Address and Comment (comment optional).
#
# If you get the following response:
// Disable all the Jenkins jobs
import hudson.model.*
for(item in Hudson.instance.items) {
println("Disabled job: " + item.name + '\n')
item.disabled=true
item.save()
}
def queue = Hudson.instance.queue