Class RequiredBuildNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
org.jenkinsci.plugins.stashNotifier.StashNotifier
org.jenkinsci.plugins.stashNotifier.RequiredBuildNotifier
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Notifies Bitbucket using the repository build status API required by the
Required Builds merge check.
-
Nested Class Summary
Nested ClassesNested 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 class org.jenkinsci.plugins.stashNotifier.StashNotifier
MAX_FIELD_LENGTH, MAX_URL_FIELD_LENGTHFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URIcreateBuildStatusUri(String stashURL, String commitSha1, Run<?, ?> run, TaskListener listener) protected net.sf.json.JSONObjectcreateNotificationPayload(Run<?, ?> run, StashBuildState state, TaskListener listener) Returns the HTTP POST entity body with the JSON representation of the run result to be sent to the Bitbucket build API.voidsetBuildKey(String buildKey) voidsetProjectKey(String projectKey) Methods inherited from class org.jenkinsci.plugins.stashNotifier.StashNotifier
abbreviate, createRequest, expandValue, getBuildDescription, getBuildKey, getBuildName, getBuildName, getBuildStatus, getBuildUrl, getBuildUrl, getCommitSha1, getCredentialsId, getGlobalDescriptor, getHttpClient, getProjectKey, getPushedBuildStatus, getRequiredMonitorService, getStashServerBaseUrl, isConsiderUnstableAsSuccess, isDisableInprogressNotification, isIgnoreUnverifiedSSLPeer, isIncludeBuildNumberInKey, isPrependParentProjectKey, lookupCommitSha1s, notifyStash, perform, perform, prebuild, requiresWorkspace, setBuildName, setBuildStatus, setBuildUrl, setCommitSha1, setConsiderUnstableAsSuccess, setCredentialsId, setDisableInprogressNotification, setIgnoreUnverifiedSSLPeer, setIncludeBuildNumberInKey, setPrependParentProjectKey, setStashServerBaseUrlMethods 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, performMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActionsMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform
-
Constructor Details
-
RequiredBuildNotifier
-
-
Method Details
-
getBitbucketProjectKey
-
getRepositorySlug
-
getBuildKey
-
setBuildKey
-
setProjectKey
- Overrides:
setProjectKeyin classStashNotifier
-
createBuildStatusUri
protected URI createBuildStatusUri(String stashURL, String commitSha1, Run<?, ?> run, TaskListener listener) - Overrides:
createBuildStatusUriin classStashNotifier
-
createNotificationPayload
protected net.sf.json.JSONObject createNotificationPayload(Run<?, ?> run, StashBuildState state, TaskListener listener) Description copied from class:StashNotifierReturns the HTTP POST entity body with the JSON representation of the run result to be sent to the Bitbucket build API.- Overrides:
createNotificationPayloadin classStashNotifier- Parameters:
run- the run to notify Bitbucket of- Returns:
- JSON body for POST to Bitbucket build API
-