Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'JENKINS-25915'
- Loading branch information
Showing
6 changed files
with
211 additions
and
0 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
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
43 changes: 43 additions & 0 deletions
43
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/scm/RTCContext.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,43 @@ | ||
package javaposse.jobdsl.dsl.helpers.scm | ||
|
||
import javaposse.jobdsl.dsl.Context | ||
import javaposse.jobdsl.dsl.JobManagement | ||
|
||
/** | ||
* DSL context for the | ||
* <a href="https://wiki.jenkins-ci.org/display/JENKINS/Team+Concert+Plugin">Team Concert Plugin</a>. | ||
*/ | ||
class RTCContext implements Context { | ||
private final JobManagement jobManagement | ||
|
||
String buildType | ||
String buildDefinition | ||
String buildWorkspace | ||
String credentialsId | ||
boolean overrideGlobal | ||
int timeout | ||
String buildTool | ||
String serverURI | ||
|
||
RTCContext(JobManagement jobManagement) { | ||
this.jobManagement = jobManagement | ||
} | ||
|
||
void buildDefinition(String buildDefinition) { | ||
this.buildDefinition = buildDefinition | ||
this.buildType = 'buildDefinition' | ||
} | ||
|
||
void buildWorkspace(String buildWorkspace) { | ||
this.buildWorkspace = buildWorkspace | ||
this.buildType = 'buildWorkspace' | ||
} | ||
|
||
void connection(String buildTool, String credentials, String serverURI, int timeout) { | ||
this.overrideGlobal = true | ||
this.buildTool = buildTool | ||
this.credentialsId = jobManagement.getCredentialsId(credentials) | ||
this.serverURI = serverURI | ||
this.timeout = timeout | ||
} | ||
} |
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