public class Git extends Plugins
node, transformer| Constructor and Description |
|---|
Git() |
Git(Transformer transformer,
Node node) |
| Modifier and Type | Method and Description |
|---|---|
void |
pushJenkinsfile(File workSpace,
String script,
String url,
String branchName,
String commitMessage,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
Method to be overridden by subclass when pushing Jenkinsfile.
|
void |
transformSCM()
Method to be overridden by subclass when transforming SCM.
|
Element |
writeCPSFlow(Document dest,
String scmURL,
String branch,
String scmCredentialsId)
Write CPS Flow XML structure for SCM type defined.
|
appendBuildSteps, appendPublishSteps, getElementByTag, getElementByTag, getPluginClass, transformBuild, transformBuildWrapper, transformPublisherpublic Git(Transformer transformer, Node node)
public Git()
public void transformSCM()
PluginstransformSCM in class Pluginspublic void pushJenkinsfile(File workSpace, String script, String url, String branchName, String commitMessage, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
PluginspushJenkinsfile in class PluginsworkSpace - The temporary workspace where the repo will be cloned.script - Groovy script to be written in Jenkinsfile.url - URL of SCM repository where Jenkinsfile is to be pushed.branchName - Branch of SCM where Jenkinsfile is to be pushed.commitMessage - Commit message to be included in commit when pushing Jenkinsfile.credentialsProvider - Credentials to use for clone and push operations.public Element writeCPSFlow(Document dest, String scmURL, String branch, String scmCredentialsId)
PluginswriteCPSFlow in class Pluginsdest - Document object in which the new XML elements are to be defined.scmURL - URL of SCM where new pipeline job will point for Jenkinsfile.branch - Branch name of SCM where new pipeline job will point for Jenkinsfile.scmCredentialsId - Credentials id to use to checkout Jenkinsfile by new pipeline job.Copyright © 2016–2017. All rights reserved.