Class GitHubCommitStatusSetter
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
Create commit state notifications on the commits based on the outcome of the build.
- Since:
- 1.19.0
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Gets info from the providers and updates commit statusvoid
setCommitShaSource
(GitHubCommitShaSource commitShaSource) void
setContextSource
(GitHubStatusContextSource contextSource) void
setErrorHandlers
(List<StatusErrorHandler> errorHandlers) void
setReposSource
(GitHubReposSource reposSource) void
setStatusBackrefSource
(GitHubStatusBackrefSource statusBackrefSource) void
setStatusResultSource
(GitHubStatusResultSource statusResultSource) Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
GitHubCommitStatusSetter
@DataBoundConstructor public GitHubCommitStatusSetter()
-
-
Method Details
-
setCommitShaSource
-
setReposSource
-
setContextSource
-
setStatusResultSource
-
setStatusBackrefSource
-
setErrorHandlers
-
getCommitShaSource
- Returns:
- SHA provider
-
getReposSource
- Returns:
- Repository list provider
-
getContextSource
- Returns:
- Context provider
-
getStatusResultSource
- Returns:
- state + msg provider
-
getStatusBackrefSource
- Returns:
- backref provider
-
getErrorHandlers
- Returns:
- error handlers
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) Gets info from the providers and updates commit status- Specified by:
perform
in interfaceSimpleBuildStep
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
readResolve
-