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
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Gets info from the providers and updates commit statusvoidsetCommitShaSource(GitHubCommitShaSource commitShaSource) voidsetContextSource(GitHubStatusContextSource contextSource) voidsetErrorHandlers(List<StatusErrorHandler> errorHandlers) voidsetReposSource(GitHubReposSource reposSource) voidsetStatusBackrefSource(GitHubStatusBackrefSource statusBackrefSource) voidsetStatusResultSource(GitHubStatusResultSource statusResultSource) Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods 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:
performin interfaceSimpleBuildStep
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
readResolve
-