-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating job-dsl-core support to 1.34 and freshening versions of othe…
…r libraries
- Loading branch information
Showing
16 changed files
with
212 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version=1.2.3 | ||
version=1.3.0 | ||
group=com.terrafolio |
Binary file not shown.
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 @@ | ||
#Sun Jun 29 12:09:34 EDT 2014 | ||
#Thu Apr 02 11:30:33 EDT 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip |
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
9 changes: 9 additions & 0 deletions
9
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DSLJobFactory.groovy
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,9 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.Job | ||
import javaposse.jobdsl.dsl.JobManagement | ||
|
||
|
||
interface DSLJobFactory { | ||
Job create(JobManagement management, String type) | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DSLJobType.groovy
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,24 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.Job | ||
import javaposse.jobdsl.dsl.jobs.* | ||
|
||
|
||
enum DSLJobType { | ||
Freeform(FreeStyleJob), | ||
Maven(MavenJob), | ||
Multijob(MultiJob), | ||
BuildFlow(BuildFlowJob), | ||
Workflow(WorkflowJob), | ||
Matrix(MatrixJob) | ||
|
||
final Class<? extends Job> jobClass | ||
|
||
DSLJobType(Class<? extends Job> jobClass) { | ||
this.jobClass = jobClass | ||
} | ||
|
||
static find(String enumName) { | ||
values().find { it.name().toLowerCase() == enumName.toLowerCase() } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DSLViewFactory.groovy
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,9 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.JobManagement | ||
import javaposse.jobdsl.dsl.View | ||
|
||
|
||
interface DSLViewFactory { | ||
View createView(JobManagement management, String type) | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DSLViewType.groovy
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,22 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.View | ||
|
||
enum DSLViewType { | ||
ListView(javaposse.jobdsl.dsl.views.ListView), | ||
SectionedView(javaposse.jobdsl.dsl.views.SectionedView), | ||
NestedView(javaposse.jobdsl.dsl.views.NestedView), | ||
DeliveryPipelineView(javaposse.jobdsl.dsl.views.DeliveryPipelineView), | ||
BuildPipelineView(javaposse.jobdsl.dsl.views.BuildPipelineView), | ||
BuildMonitorView(javaposse.jobdsl.dsl.views.BuildMonitorView) | ||
|
||
final Class<? extends View> viewClass | ||
|
||
DSLViewType(Class<? extends View> viewClass) { | ||
this.viewClass = viewClass | ||
} | ||
|
||
static find(String enumName) { | ||
values().find { it.name().toLowerCase() == enumName.toLowerCase() } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DefaultDSLJobFactory.groovy
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,18 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.Job | ||
import javaposse.jobdsl.dsl.JobManagement | ||
|
||
class DefaultDSLJobFactory implements DSLJobFactory { | ||
@Override | ||
Job create(JobManagement management, String type) { | ||
Class<? extends Job> jobClass | ||
if (type == null) { | ||
jobClass = DSLJobType.Freeform.jobClass | ||
} else { | ||
jobClass = DSLJobType.find(type).jobClass | ||
} | ||
|
||
return jobClass.newInstance(management) | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/groovy/com/terrafolio/gradle/plugins/jenkins/jobdsl/DefaultDSLViewFactory.groovy
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,18 @@ | ||
package com.terrafolio.gradle.plugins.jenkins.jobdsl | ||
|
||
import javaposse.jobdsl.dsl.JobManagement | ||
import javaposse.jobdsl.dsl.View | ||
|
||
class DefaultDSLViewFactory implements DSLViewFactory { | ||
@Override | ||
View createView(JobManagement management, String type) { | ||
Class<? extends View> viewClass | ||
if (type == null) { | ||
viewClass = DSLViewType.ListView.viewClass | ||
} else { | ||
viewClass = DSLViewType.find(type).viewClass | ||
} | ||
|
||
return viewClass.newInstance(management) | ||
} | ||
} |
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.
11165eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great.
I'd like to use this, but cannot find version 1.3.0 in Jcenter where I got the previous versions from.
I couldn't find out which repository this project is deployed to. Where is it?
11165eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it already. Sorry for the noise.
At "https://plugins.gradle.org/m2/" as you've described in the Wiki