public class PathRestriction extends GitSCMExtension
GitSCMExtension that ignores commits that only affects specific paths.| Modifier and Type | Class and Description |
|---|---|
static class |
PathRestriction.DescriptorImpl |
| Constructor and Description |
|---|
PathRestriction(String includedRegions,
String excludedRegions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludedRegions() |
String[] |
getExcludedRegionsNormalized() |
String |
getIncludedRegions() |
String[] |
getIncludedRegionsNormalized() |
Boolean |
isRevExcluded(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git,
GitChangeSet commit,
TaskListener listener,
BuildData buildData)
Given a commit found during polling, check whether it should be disregarded.
|
boolean |
requiresWorkspaceForPolling() |
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariablespublic boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class GitSCMExtensiontrue when this extension has a requirement to get a workspace during polling,
typically as it has to check for incoming changes, not just remote HEAD.public String getIncludedRegions()
public String getExcludedRegions()
public String[] getExcludedRegionsNormalized()
public String[] getIncludedRegionsNormalized()
@CheckForNull public Boolean isRevExcluded(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git, GitChangeSet commit, TaskListener listener, BuildData buildData)
GitSCMExtensionisRevExcluded in class GitSCMExtensionscm - GitSCM objectgit - GitClient objectcommit - The commit whose exclusion is being tested.listener - build logbuildData - build data to be usedGitSCMExtensions say.
false to trigger a build from this commit, regardless of what later GitSCMExtensions say.
null to allow other GitSCMExtensions to decide.Copyright © 2007–2021. All rights reserved.