Created
November 1, 2015 22:13
-
-
Save jlmelville/16493f0562254ba0b02b to your computer and use it in GitHub Desktop.
Manually creating a Gradle task with the Jenkins Jobs DSL
This file contains 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
configure { project -> | |
project / builders / 'hudson.plugins.gradle.Gradle' { | |
description 'Builds and runs unit tests.' | |
tasks "clean test javadoc" | |
rootBuildScriptDir '' | |
fromRootBuildScriptDir true | |
useWrapper true | |
makeExecutable true | |
useWorkspaceAsHome false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I was using the Jenkins Job DSL for some reason I couldn't get the Gradle command to work. Fortunately, it's quite easy to write the XML directly.