Skip to content

Instantly share code, notes, and snippets.

@slide
Created March 27, 2019 17:52
Show Gist options
  • Save slide/35fbd253ff29eed310ca277d3a7a5905 to your computer and use it in GitHub Desktop.
Save slide/35fbd253ff29eed310ca277d3a7a5905 to your computer and use it in GitHub Desktop.
groovy var
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