-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #12: Add support for auto-generated DSL and extensions
Add support for the auto-generated DSL [1] and Job DSL extensions [2]. This is implemented using the Jenkins test-harness to execute the Job DSL scripts in a temporary Jenkins instance. This way the discovery of plugin extension points works the same way as it does in a Job DSL seed job. The list of plugins can be configured in the jenkinsPlugins configuration in Gradle. Also change the next version to 3.0.0 because this is a major change. [1] https://github.com/jenkinsci/job-dsl-plugin/wiki/Automatically-Generated-DSL [2] https://github.com/jenkinsci/job-dsl-plugin/wiki/Extending-the-DSL
- Loading branch information
1 parent
eee9e0e
commit b0c880e
Showing
31 changed files
with
790 additions
and
102 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Maven configuration | ||
maven.groupId=com.here.gradle.plugins | ||
maven.artifactId=gradle-jenkins-jobdsl-plugin | ||
maven.version=2.2.0-SNAPSHOT | ||
maven.version=3.0.0-SNAPSHOT | ||
# Set this flag to true for release builds. | ||
maven.release=false |
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
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
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
14 changes: 14 additions & 0 deletions
14
plugin/src/functionalTest/resources/generateXml/build-with-generated-dsl.gradle
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
buildscript { | ||
dependencies { | ||
classpath files(CLASSPATH_STRING) | ||
} | ||
} | ||
|
||
apply plugin: 'com.here.jobdsl' | ||
|
||
dependencies { | ||
compile localGroovy() | ||
|
||
jenkinsPlugins 'org.jenkins-ci.plugins:cloudbees-folder:6.2.1' | ||
jenkinsPlugins 'org.jenkins-ci.plugins:cvs:2.13' | ||
} |
14 changes: 14 additions & 0 deletions
14
plugin/src/functionalTest/resources/generateXml/build-with-jobdsl-extension.gradle
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
buildscript { | ||
dependencies { | ||
classpath files(CLASSPATH_STRING) | ||
} | ||
} | ||
|
||
apply plugin: 'com.here.jobdsl' | ||
|
||
dependencies { | ||
compile localGroovy() | ||
|
||
jenkinsPlugins 'org.jenkins-ci.plugins:cloudbees-folder:6.2.1' | ||
jenkinsPlugins 'org.jenkins-ci.plugins:jgiven:0.15.1' | ||
} |
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
Oops, something went wrong.