Skip to content

Instantly share code, notes, and snippets.

@frezbo
Created September 25, 2017 14:14
Show Gist options
  • Save frezbo/79b2242c6d98befe41d9e3c89910f2e1 to your computer and use it in GitHub Desktop.
Save frezbo/79b2242c6d98befe41d9e3c89910f2e1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env groovy
pipeline {
agent {
node {
label 'master'
}
}
environment {
sshKey = UUID.randomUUID().toString()
sshId = "${sshKey}"
}
stages {
stage('Set job properties') {
steps {
echo "Random UUID is: ${sshKey}"
echo "Random JSON us: ${sshId}"
}
}
}
post {
always {
deleteDir()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment