Skip to content

Instantly share code, notes, and snippets.

@AMeng
Last active September 28, 2017 22:04
Show Gist options
  • Save AMeng/312175c797bf575e78f1e3476f763dbb to your computer and use it in GitHub Desktop.
Save AMeng/312175c797bf575e78f1e3476f763dbb to your computer and use it in GitHub Desktop.
Jenkins Job DSL Example
job('example-job') {
wrappers {
colorizeOutput()
preBuildCleanup()
}
logRotator {
numToKeep(10)
}
steps {
shell('./gradlew clean build')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment