public interface ScmSyncStrategy
Modifier and Type | Interface and Description |
---|---|
static interface |
ScmSyncStrategy.CommitMessageFactory |
Modifier and Type | Method and Description |
---|---|
List<File> |
collect()
Collects all files, from Jenkins' root directory, that match this strategy.
|
List<File> |
collect(File directory)
Collects all files in the given directory, which must be under Jenkins' root directory, that match this strategy.
|
ScmSyncStrategy.CommitMessageFactory |
getCommitMessageFactory() |
List<String> |
getSyncIncludes() |
boolean |
isCurrentUrlApplicable(String url)
Is the given url eligible for the current strategy ?
|
boolean |
isSaveableApplicable(hudson.model.Saveable saveable,
File file)
Is the given Saveable eligible for the current strategy ?
|
boolean |
mightHaveBeenApplicableToDeletedSaveable(hudson.model.Saveable saveable,
String pathRelativeToRoot,
boolean wasDirectory)
Determines whether the strategy might have applied to a deleted item.
|
boolean isSaveableApplicable(hudson.model.Saveable saveable, File file)
saveable
- A saveable which is savedfile
- Corresponding file to the given Saveable objectboolean mightHaveBeenApplicableToDeletedSaveable(hudson.model.Saveable saveable, String pathRelativeToRoot, boolean wasDirectory)
saveable
- that was deleted; still exists in Jenkins' model but has already been eradicated from diskpathRelativeToRoot
- where the item residedwasDirectory
- whether it was a directoryboolean isCurrentUrlApplicable(String url)
url
- Current url, where hudson root url has been truncatedList<File> collect()
List<File> collect(File directory)
directory
- to search inIllegalArgumentException
- if the given directory is not under Jenkins' root directoryList<String> getSyncIncludes()
ScmSyncStrategy.CommitMessageFactory getCommitMessageFactory()
Copyright © 2004-2016. All Rights Reserved.