public class MessageExclusion extends GitSCMExtension
GitSCMExtension that ignores commits with specific messages.| Modifier and Type | Class and Description |
|---|---|
static class |
MessageExclusion.DescriptorImpl |
| Constructor and Description |
|---|
MessageExclusion(String excludedMessage) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludedMessage() |
Boolean |
isRevExcluded(GitSCM scm,
org.jenkinsci.plugins.gitclient.GitClient git,
GitChangeSet commit,
hudson.model.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, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables@DataBoundConstructor public MessageExclusion(String excludedMessage)
public 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 getExcludedMessage()
public Boolean isRevExcluded(GitSCM scm, org.jenkinsci.plugins.gitclient.GitClient git, GitChangeSet commit, hudson.model.TaskListener listener, BuildData buildData) throws IOException, InterruptedException, hudson.plugins.git.GitException
GitSCMExtensionisRevExcluded in class GitSCMExtensiongit - GitClient objectcommit - The commit whose exclusion is being tested.GitSCMExtensions say.
false to trigger a build from this commit, regardless of what later GitSCMExtensions say.
null to allow other GitSCMExtensions to decide.IOExceptionInterruptedExceptionhudson.plugins.git.GitExceptionCopyright © 2004-2015. All Rights Reserved.