Class GitSCMStatusChecksExtension
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtension
io.jenkins.plugins.checks.github.status.GitSCMStatusChecksExtension
- All Implemented Interfaces:
Describable<hudson.plugins.git.extensions.GitSCMExtension>,GitHubStatusChecksConfigurations
public class GitSCMStatusChecksExtension
extends hudson.plugins.git.extensions.GitSCMExtension
implements GitHubStatusChecksConfigurations
Git Extension that controls
AbstractStatusChecksProperties for freestyle jobs using GitSCM.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor implementation forGitSCMStatusChecksExtension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Defines the status checks name which is also used as identifier for GitHub checks.booleanisSkip()Defines whether to skip publishing status checks.booleanReturns whether to suppress progress updates from theio.jenkins.plugins.checks.status.FlowExecutionAnalyzer.booleanDefines whether to suppress log output in status checks.booleanDefines whether to publish unstable builds as neutral status checks.voidSet the name of the status checks.voidsetSkip(boolean skip) Set if skip publishing status checks.voidsetSkipProgressUpdates(boolean skipProgressUpdates) voidsetSuppressLogs(boolean suppressLogs) voidsetUnstableBuildNeutral(boolean unstableBuildNeutral) Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
Constructor Details
-
GitSCMStatusChecksExtension
@DataBoundConstructor public GitSCMStatusChecksExtension()Constructor for stapler.
-
-
Method Details
-
getName
Description copied from interface:GitHubStatusChecksConfigurationsDefines the status checks name which is also used as identifier for GitHub checks.- Specified by:
getNamein interfaceGitHubStatusChecksConfigurations- Returns:
- the name of status checks
-
isSkip
public boolean isSkip()Description copied from interface:GitHubStatusChecksConfigurationsDefines whether to skip publishing status checks.- Specified by:
isSkipin interfaceGitHubStatusChecksConfigurations- Returns:
- true to skip publishing checks
-
isUnstableBuildNeutral
public boolean isUnstableBuildNeutral()Description copied from interface:GitHubStatusChecksConfigurationsDefines whether to publish unstable builds as neutral status checks.- Specified by:
isUnstableBuildNeutralin interfaceGitHubStatusChecksConfigurations- Returns:
- true to publish unstable builds as neutral status checks.
-
isSuppressLogs
public boolean isSuppressLogs()Description copied from interface:GitHubStatusChecksConfigurationsDefines whether to suppress log output in status checks.- Specified by:
isSuppressLogsin interfaceGitHubStatusChecksConfigurations- Returns:
- true to suppress logs
-
isSkipProgressUpdates
public boolean isSkipProgressUpdates()Description copied from interface:GitHubStatusChecksConfigurationsReturns whether to suppress progress updates from theio.jenkins.plugins.checks.status.FlowExecutionAnalyzer. Queued, Checkout and Completed will still run but not 'onNewHead'- Specified by:
isSkipProgressUpdatesin interfaceGitHubStatusChecksConfigurations- Returns:
- true if progress updates should be skipped.
-
setSkipProgressUpdates
@DataBoundSetter public void setSkipProgressUpdates(boolean skipProgressUpdates) -
setName
Set the name of the status checks.- Parameters:
name- name of the checks
-
setSkip
@DataBoundSetter public void setSkip(boolean skip) Set if skip publishing status checks.- Parameters:
skip- true if skip
-
setUnstableBuildNeutral
@DataBoundSetter public void setUnstableBuildNeutral(boolean unstableBuildNeutral) -
setSuppressLogs
@DataBoundSetter public void setSuppressLogs(boolean suppressLogs)
-