Package io.jenkins.plugins.trunk
Class Mapper
java.lang.Object
io.jenkins.plugins.trunk.Mapper
Mapper is responsible for mapping Jenkins objects to Trunk objects.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
makeJobRunEventId
(Run<?, ?> run) static ActivityPayloadForm
makePipelineActivityEventPayloadForm
(Run<?, ?> run) static SequenceForm
makePipelineSequenceForm
(Run<?, ?> run) static ActivityEventForm
newPipelineCompletedEvent
(Run<?, ?> run) static ActivityEventForm
newPipelineStartedEvent
(Run<?, ?> run) static ActivityEventForm
newStageCompletedEvent
(Run<?, ?> run, org.jenkinsci.plugins.workflow.graph.FlowNode startNode, org.jenkinsci.plugins.workflow.graph.FlowNode endNode) static ActivityEventForm
newStageStartedEvent
(Run<?, ?> run, org.jenkinsci.plugins.workflow.graph.FlowNode node)
-
Field Details
-
PLATFORM_JENKINS
- See Also:
-
KIND_PIPELINE
- See Also:
-
KIND_STAGE
- See Also:
-
-
Constructor Details
-
Mapper
public Mapper()
-
-
Method Details
-
newPipelineStartedEvent
-
newPipelineCompletedEvent
-
newStageStartedEvent
public static ActivityEventForm newStageStartedEvent(@NonNull Run<?, ?> run, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode node) -
newStageCompletedEvent
public static ActivityEventForm newStageCompletedEvent(@NonNull Run<?, ?> run, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode startNode, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode endNode) -
makePipelineSequenceForm
-
makePipelineActivityEventPayloadForm
-
makeJobRunEventId
-