Skip to content

Instantly share code, notes, and snippets.

@JeanMertz
Created October 16, 2016 09:50
Show Gist options
  • Save JeanMertz/d438e25a354c541e669325967ea46f31 to your computer and use it in GitHub Desktop.
Save JeanMertz/d438e25a354c541e669325967ea46f31 to your computer and use it in GitHub Desktop.
node {
// # # + echo foo is:
// foo is:
withEnv(['FOO=bar']) {
sh 'echo "foo is: $FOO"'
}
// # # + echo hello is:
// hello is:
env.HELLO = 'world'
sh 'echo "hello is: $HELLO"'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment