Skip to content

Instantly share code, notes, and snippets.

@macg33zr
Created November 22, 2016 18:06
Show Gist options
  • Save macg33zr/ac6ecf5a7d2f8880081675634434eced to your computer and use it in GitHub Desktop.
Save macg33zr/ac6ecf5a7d2f8880081675634434eced to your computer and use it in GitHub Desktop.
Jenkins Pipeline Model Definition - Timestamps
pipeline {
environment {
FOO_OUT = "Foo"
}
agent label:"LNX64"
wrappers {
timestamps()
}
stages {
stage('Foo') {
steps {
echo env.FOO_OUT
}
}
}
post {
success {
println "Foo worked!"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment