java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.pipeline.SendEiffelEventStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

public class SendEiffelEventStep extends org.jenkinsci.plugins.workflow.steps.Step
Defines a pipeline step for sending an Eiffel event expressed as a Map. By default the event passed by the user will be decorated with a CONTEXT link to the current build's EiffelActivityTriggeredEvent. Optionally a CAUSE link can be created instead or the link can be omitted entirely.
 def event = [
     "meta": [
         "type": "EiffelCompositionDefinedEvent",
         "version": "3.0.0",
     ],
     "data": [
         "name": "my-composition",
     ],
 ]
 def sent = sendEiffelEvent event: event, activityLinkType: "CAUSE"
 echo "This event was sent: ${sent}"
 
This step returns immediately as soon as the event has been validated and put on the internal outbound queue. The actual delivery of the event to the broker might not have happened at the time of the return.
  • Field Details

  • Constructor Details

    • SendEiffelEventStep

      @DataBoundConstructor public SendEiffelEventStep(@NonNull Map event)
  • Method Details

    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext stepContext) throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception
    • getEvent

      @NonNull public Map getEvent()
    • getLinkToActivity

      public boolean getLinkToActivity()
    • setLinkToActivity

      @DataBoundSetter public void setLinkToActivity(boolean linkToActivity)
    • getActivityLinkType

      public EiffelEvent.Link.Type getActivityLinkType()
    • setActivityLinkType

      @DataBoundSetter public void setActivityLinkType(EiffelEvent.Link.Type activityLinkType)
    • getPublishArtifact

      public boolean getPublishArtifact()
    • setPublishArtifact

      @DataBoundSetter public void setPublishArtifact(boolean publishArtifact)
    • getSignatureCredentialsId

      public String getSignatureCredentialsId()
    • setSignatureCredentialsId

      @DataBoundSetter public void setSignatureCredentialsId(String signatureCredentialsId)
    • getSignatureHashAlgorithm

      public HashAlgorithm getSignatureHashAlgorithm()
    • setSignatureHashAlgorithm

      @DataBoundSetter public void setSignatureHashAlgorithm(String signatureHashAlgorithm)