Skip to content

Instantly share code, notes, and snippets.

@t3knoid
Created February 2, 2018 16:50
Show Gist options
  • Save t3knoid/1b5e30c5151fbd04318b4fbab554ee7a to your computer and use it in GitHub Desktop.
Save t3knoid/1b5e30c5151fbd04318b4fbab554ee7a to your computer and use it in GitHub Desktop.
Jenkins pipeline script that prints environment variables to the console
/**
* Prints environment variables and their values in the console
*/
def printParams() {
bat 'set > env.txt'
for (String i : readFile('env.txt').split("\r?\n")) {
println i
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment