Last active
September 28, 2017 22:04
-
-
Save AMeng/312175c797bf575e78f1e3476f763dbb to your computer and use it in GitHub Desktop.
Jenkins Job DSL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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