Skip to content

Instantly share code, notes, and snippets.

@jaredwy
Created September 1, 2016 21:13
Show Gist options
  • Save jaredwy/9bf2519e91fc5ac5f7c54ab0de22b37c to your computer and use it in GitHub Desktop.
Save jaredwy/9bf2519e91fc5ac5f7c54ab0de22b37c to your computer and use it in GitHub Desktop.
pipeline {
agent label:'master'
stages {
stage('build') {
execute 'echo step1'
execute 'echo step2'
execute '''
echo 'Multiline'
echo 'Example'
'''
execute 'not using shell'
}
}
}
execute is something like
if(platform == windows)
bat command
else
sh command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment