Skip to content

Instantly share code, notes, and snippets.

@23jodys
Last active October 5, 2017 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23jodys/0d3742a40bb084ebfae493d13b8119f4 to your computer and use it in GitHub Desktop.
Save 23jodys/0d3742a40bb084ebfae493d13b8119f4 to your computer and use it in GitHub Desktop.
Jenkinsfile Environment Declarative
pipeline {
agent any
stages {
stage('Example') {
steps {
// interpolated by the shell
sh 'echo Shell $PWD'
// interpolated by the shell
sh '''echo Shell $PWD'''
// interpolated in this file by Groovy
sh "echo Groovy $PWD"}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment