public class ScmSyncConfigurationPlugin
extends hudson.Plugin
Modifier and Type | Class and Description |
---|---|
static interface |
ScmSyncConfigurationPlugin.AtomicTransactionFactory |
Modifier and Type | Field and Description |
---|---|
static ScmSyncStrategy[] |
AVAILABLE_STRATEGIES |
static List<ScmSyncStrategy> |
DEFAULT_STRATEGIES
Strategies that cannot be updated by user
|
Constructor and Description |
---|
ScmSyncConfigurationPlugin() |
ScmSyncConfigurationPlugin(boolean synchronousTransactions) |
Modifier and Type | Method and Description |
---|---|
Iterable<File> |
collectAllFilesForScm() |
Iterable<File> |
collectAllFilesForScm(File fromSubDirectory) |
Future<Void> |
commitChangeset(ChangeSet changeset) |
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
ScmContext |
createScmContext() |
boolean |
currentUserCannotPurgeFailLogs() |
hudson.util.FormValidation |
doCheckGitUrl(String value)
UI form validation for the git repository URL.
|
void |
doHelpForRepositoryUrl(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse res) |
void |
doManualIncludesHelp(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse res) |
void |
doReloadAllFilesFromScm(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse res) |
void |
doSubmitComment(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse res) |
void |
doSynchronizeFile(String path) |
String |
getCommitMessagePattern() |
List<String> |
getDefaultIncludes()
This method is invoked via jelly to display a list of all the default includes.
|
hudson.model.Descriptor<? extends hudson.scm.SCM> |
getDescriptorForSCM(String scmName) |
List<File> |
getFilesModifiedByLastReload() |
static ScmSyncConfigurationPlugin |
getInstance() |
List<String> |
getManualSynchronizationIncludes() |
SCM |
getSCM() |
String |
getScmRepositoryUrl() |
SCM[] |
getScms() |
ScmSyncConfigurationStatusManager |
getScmSyncConfigurationStatusManager() |
String |
getScmUrl() |
ScmSyncStrategy |
getStrategyForDeletedSaveable(hudson.model.Saveable s,
String pathRelativeToRoot,
boolean wasDirectory)
Tries to find at least one strategy that would have applied to a deleted item.
|
ScmSyncStrategy |
getStrategyForSaveable(hudson.model.Saveable s,
File f) |
ScmSyncStrategy |
getStrategyForURL(String url) |
ScmTransaction |
getTransaction() |
void |
init() |
protected void |
initialInit() |
boolean |
isDisplayStatus() |
boolean |
isNoUserCommitMessage() |
boolean |
isScmSelected(SCM _scm) |
void |
loadData(ScmSyncConfigurationPOJO pojo) |
void |
purgeFailLogs() |
void |
reloadAllFilesFromScm() |
void |
setBusiness(ScmSyncConfigurationBusiness business) |
protected void |
setTransaction(ScmTransaction transactionToRegister) |
boolean |
shouldDecorationOccursOnURL(String url) |
void |
start() |
void |
startThreadedTransaction() |
void |
stop() |
public static final transient ScmSyncStrategy[] AVAILABLE_STRATEGIES
public static final transient List<ScmSyncStrategy> DEFAULT_STRATEGIES
public ScmSyncConfigurationPlugin()
public ScmSyncConfigurationPlugin(boolean synchronousTransactions)
public void purgeFailLogs()
public void start() throws Exception
start
in class hudson.Plugin
Exception
public void loadData(ScmSyncConfigurationPOJO pojo)
public void init()
public void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws IOException, javax.servlet.ServletException, hudson.model.Descriptor.FormException
configure
in class hudson.Plugin
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
public void reloadAllFilesFromScm() throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void doReloadAllFilesFromScm(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void doSubmitComment(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void doHelpForRepositoryUrl(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void doManualIncludesHelp(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void doSynchronizeFile(@QueryParameter String path)
public List<String> getDefaultIncludes()
public static ScmSyncConfigurationPlugin getInstance()
public ScmSyncStrategy getStrategyForSaveable(hudson.model.Saveable s, File f)
public ScmSyncStrategy getStrategyForDeletedSaveable(hudson.model.Saveable s, String pathRelativeToRoot, boolean wasDirectory)
s
- the saveable that was deleted. It still exists in Jenkins' model, but has already been eradicated from disk.pathRelativeToRoot
- where the item had lived on diskwasDirectory
- whether it was a directorypublic ScmContext createScmContext()
public boolean shouldDecorationOccursOnURL(String url)
public ScmSyncStrategy getStrategyForURL(String url)
public boolean isNoUserCommitMessage()
public SCM[] getScms()
public void setBusiness(ScmSyncConfigurationBusiness business)
public ScmSyncConfigurationStatusManager getScmSyncConfigurationStatusManager()
public String getScmRepositoryUrl()
public boolean isScmSelected(SCM _scm)
public SCM getSCM()
public String getScmUrl()
public boolean isDisplayStatus()
public String getCommitMessagePattern()
public hudson.model.Descriptor<? extends hudson.scm.SCM> getDescriptorForSCM(String scmName)
public void startThreadedTransaction()
public ScmTransaction getTransaction()
protected void setTransaction(ScmTransaction transactionToRegister)
public boolean currentUserCannotPurgeFailLogs()
public hudson.util.FormValidation doCheckGitUrl(@QueryParameter String value)
value
- from the UI formCopyright © 2004-2016. All Rights Reserved.