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
Modifier and TypeClassDescriptionstatic class
Descriptor implementation forGitSCMStatusChecksExtension
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Defines the status checks name which is also used as identifier for GitHub checks.boolean
isSkip()
Defines whether to skip publishing status checks.boolean
Returns whether to suppress progress updates from theio.jenkins.plugins.checks.status.FlowExecutionAnalyzer
.boolean
Defines whether to suppress log output in status checks.boolean
Defines whether to publish unstable builds as neutral status checks.void
Set the name of the status checks.void
setSkip
(boolean skip) Set if skip publishing status checks.void
setSkipProgressUpdates
(boolean skipProgressUpdates) void
setSuppressLogs
(boolean suppressLogs) void
setUnstableBuildNeutral
(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:GitHubStatusChecksConfigurations
Defines the status checks name which is also used as identifier for GitHub checks.- Specified by:
getName
in interfaceGitHubStatusChecksConfigurations
- Returns:
- the name of status checks
-
isSkip
public boolean isSkip()Description copied from interface:GitHubStatusChecksConfigurations
Defines whether to skip publishing status checks.- Specified by:
isSkip
in interfaceGitHubStatusChecksConfigurations
- Returns:
- true to skip publishing checks
-
isUnstableBuildNeutral
public boolean isUnstableBuildNeutral()Description copied from interface:GitHubStatusChecksConfigurations
Defines whether to publish unstable builds as neutral status checks.- Specified by:
isUnstableBuildNeutral
in interfaceGitHubStatusChecksConfigurations
- Returns:
- true to publish unstable builds as neutral status checks.
-
isSuppressLogs
public boolean isSuppressLogs()Description copied from interface:GitHubStatusChecksConfigurations
Defines whether to suppress log output in status checks.- Specified by:
isSuppressLogs
in interfaceGitHubStatusChecksConfigurations
- Returns:
- true to suppress logs
-
isSkipProgressUpdates
public boolean isSkipProgressUpdates()Description copied from interface:GitHubStatusChecksConfigurations
Returns whether to suppress progress updates from theio.jenkins.plugins.checks.status.FlowExecutionAnalyzer
. Queued, Checkout and Completed will still run but not 'onNewHead'- Specified by:
isSkipProgressUpdates
in 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)
-