Class GitHubPRBuildStatusPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.jenkinsci.plugins.github.pullrequest.publishers.GitHubPRAbstractPublisher
org.jenkinsci.plugins.github.pullrequest.publishers.impl.GitHubPRBuildStatusPublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Sets build status on GitHub.
- Author:
- Alina Karpovich, Kanstantsin Shautsou
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic 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
ConstructorsConstructorDescriptionConstructor with defaults.GitHubPRBuildStatusPublisher(GitHubPRMessage statusMsg, org.kohsuke.github.GHCommitState unstableAs, GitHubPRBuildStatusPublisher.BuildMessage buildMessage, StatusVerifier statusVerifier, PublisherErrorHandler errorHandler) -
Method Summary
Methods inherited from class org.jenkinsci.plugins.github.pullrequest.publishers.GitHubPRAbstractPublisher
getErrorHandler, getRequiredMonitorService, getStatusVerifier, getTriggerDescriptor, handlePublisherErrorMethods 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
-
GitHubPRBuildStatusPublisher
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public GitHubPRBuildStatusPublisher()Constructor with defaults. Only for groovy UI. -
GitHubPRBuildStatusPublisher
@DataBoundConstructor public GitHubPRBuildStatusPublisher(GitHubPRMessage statusMsg, org.kohsuke.github.GHCommitState unstableAs, GitHubPRBuildStatusPublisher.BuildMessage buildMessage, StatusVerifier statusVerifier, PublisherErrorHandler errorHandler)
-
-
Method Details
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
getApi
-
getBuildMessage
-
getUnstableAs
public org.kohsuke.github.GHCommitState getUnstableAs() -
getStatusMsg
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classRecorder
-