Created
March 27, 2019 17:52
-
-
Save slide/35fbd253ff29eed310ca277d3a7a5905 to your computer and use it in GitHub Desktop.
groovy var
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
def groovyVar = 'test' | |
pipeline { | |
agent any | |
options { | |
timestamps() | |
ansiColor('xterm') | |
} | |
environment { | |
VAR = "test" | |
} | |
stages { | |
stage('echo Deploy to remote node') { | |
steps { | |
sh ''' | |
echo "${VAR}" | |
BLA="${VAR}" | |
echo "${BLA}" | |
echo "${groovyVar}" | |
''' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment