Class PublishWebhookStep

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

    public class PublishWebhookStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    • 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 class org.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)