org.jenkinsci.plugins.pom2config.handler.scm
Class ScmHandler.ScmHandlerSpec
java.lang.Object
org.jenkinsci.plugins.pom2config.Pom2ConfigHandler.Pom2ConfigHandlerSpec
org.jenkinsci.plugins.pom2config.handler.scm.ScmHandler.ScmHandlerSpec
- Enclosing class:
- ScmHandler
public static class ScmHandler.ScmHandlerSpec
- extends Pom2ConfigHandler.Pom2ConfigHandlerSpec
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScmHandler.ScmHandlerSpec
public ScmHandler.ScmHandlerSpec()
getName
public String getName()
- Specified by:
getName in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
isLoaded
public boolean isLoaded()
- Specified by:
isLoaded in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
isActivatedInJob
public boolean isActivatedInJob(hudson.model.AbstractProject<?,?> project)
- Description copied from class:
Pom2ConfigHandler.Pom2ConfigHandlerSpec
- Is the plugin activated in the job configuration
- Specified by:
isActivatedInJob in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
- Returns:
- true if it is or no if not
getSCMPaths
protected List<String> getSCMPaths(hudson.model.AbstractProject<?,?> project)
- Finds the SCM locations for a project.
- Returns:
- List of found SCM paths
replaceScmUrl
protected String replaceScmUrl(hudson.model.AbstractProject<?,?> project,
String oldScmUrl,
String newScmUrl)
- Replaces the SCM URL in the job configuration with the new one from
the pom
- Parameters:
project - oldScmUrl - , the old SCM URL from the job configurationnewScmUrl - . the new SCM URL from the pom
- Throws:
IOException
parsePom
public List<DataSet> parsePom(hudson.model.AbstractProject<?,?> project,
Document doc)
throws IOException
- Specified by:
parsePom in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
- Throws:
IOException
setDetails
public String setDetails(hudson.model.AbstractProject<?,?> project,
net.sf.json.JSONObject formData)
- Specified by:
setDetails in class Pom2ConfigHandler.Pom2ConfigHandlerSpec
Copyright © 2004-2013. All Rights Reserved.