Class SendEiffelEventStep
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
boolean
boolean
void
setActivityLinkType
(EiffelEvent.Link.Type activityLinkType) void
setLinkToActivity
(boolean linkToActivity) void
setPublishArtifact
(boolean publishArtifact) void
setSignatureCredentialsId
(String signatureCredentialsId) void
setSignatureHashAlgorithm
(String signatureHashAlgorithm) org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext stepContext) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Field Details
-
ERROR_MESSAGE_PREFIX
- See Also:
-
-
Constructor Details
-
SendEiffelEventStep
-
-
Method Details
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext stepContext) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
getEvent
-
getLinkToActivity
public boolean getLinkToActivity() -
setLinkToActivity
@DataBoundSetter public void setLinkToActivity(boolean linkToActivity) -
getActivityLinkType
-
setActivityLinkType
-
getPublishArtifact
public boolean getPublishArtifact() -
setPublishArtifact
@DataBoundSetter public void setPublishArtifact(boolean publishArtifact) -
getSignatureCredentialsId
-
setSignatureCredentialsId
-
getSignatureHashAlgorithm
-
setSignatureHashAlgorithm
-