Package jenkins.plugins.collabnet.steps
Class PublishWebhookStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- jenkins.plugins.collabnet.steps.PublishWebhookStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class PublishWebhookStep extends org.jenkinsci.plugins.workflow.steps.Step
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublishWebhookStep.DescriptorImpl
static class
PublishWebhookStep.PublishWebhookStepExecution
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description boolean
excludeCommitInfo
The flag to control whether to exclude associated commit info in the TeamForge notification.boolean
markUnstable
The flag to mark current run unstable if this step fails to notify TeamForge.String
status
The (optional) status to report explicitly to TeamForge.
-
Constructor Summary
Constructors Constructor Description PublishWebhookStep(String webhookUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCredentialsId()
String
getWebhookUrl()
Reads the server URL to contact.void
setCredentialsId(String credentialsId)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Field Detail
-
markUnstable
@DataBoundSetter public boolean markUnstable
The flag to mark current run unstable if this step fails to notify TeamForge.
-
status
@DataBoundSetter public String status
The (optional) status to report explicitly to TeamForge.
-
excludeCommitInfo
@DataBoundSetter public boolean excludeCommitInfo
The flag to control whether to exclude associated commit info in the TeamForge notification.
-
-
Constructor Detail
-
PublishWebhookStep
@DataBoundConstructor public PublishWebhookStep(String webhookUrl)
-
-
Method Detail
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getWebhookUrl
public String getWebhookUrl()
Reads the server URL to contact. Used by Jelly to render the UI template.- Returns:
- the server URL
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(String credentialsId)
-
-