Created
September 25, 2017 14:14
-
-
Save frezbo/79b2242c6d98befe41d9e3c89910f2e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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