Created
February 2, 2018 16:50
-
-
Save t3knoid/1b5e30c5151fbd04318b4fbab554ee7a to your computer and use it in GitHub Desktop.
Jenkins pipeline script that prints environment variables to the console
This file contains hidden or 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
/** | |
* 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