org.jenkinsci.plugins.pom2config.handler.scm
Class ScmGit
java.lang.Object
org.jenkinsci.plugins.pom2config.handler.scm.ScmGit
public class ScmGit
- extends Object
- Author:
- Kathi Stutz, Michael Klein
|
Method Summary |
protected List<String> |
getGitPaths(hudson.model.AbstractProject<?,?> project)
Finds the Git locations for a project. |
protected String |
replaceGitUrl(hudson.model.AbstractProject<?,?> project,
String oldScmUrl,
String newScmUrl)
Replaces the Git URL in the job configuration with the new one from the
pom |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScmGit
public ScmGit()
getGitPaths
protected List<String> getGitPaths(hudson.model.AbstractProject<?,?> project)
- Finds the Git locations for a project.
- Returns:
- List of found Git paths
replaceGitUrl
protected String replaceGitUrl(hudson.model.AbstractProject<?,?> project,
String oldScmUrl,
String newScmUrl)
throws IOException
- Replaces the Git URL in the job configuration with the new one from the
pom
- Parameters:
project - oldScmUrl - , the old Git URL from the job configurationnewScmUrl - . the new Git URL from the pom
- Returns:
-
- Throws:
IOException
Copyright © 2004-2013. All Rights Reserved.