Class AbstractPipelineListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onAfterAtomicStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode stepAtomNode, org.jenkinsci.plugins.workflow.graph.FlowNode nextNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just after the atomic step
      void onAfterStartNodeStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode, String nodeLabel, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just after the `node` step starts.
      void onAtomicStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the atomic step starts
      void onEndNodeStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode nodeStepEndNode, String nodeName, org.jenkinsci.plugins.workflow.graph.FlowNode nextNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just after the `node` step ends
      void onEndParallelStepBranch​(org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode stepStepNode, String branchName, org.jenkinsci.plugins.workflow.graph.FlowNode nextNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the `parallel` branch ends
      void onEndPipeline​(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just after the pipeline ends
      void onEndStageStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode stageStepEndNode, String stageName, org.jenkinsci.plugins.workflow.graph.FlowNode nextNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just after the `stage` step ends
      void onStartNodeStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode, String nodeLabel, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the `node` step starts.
      void onStartParallelStepBranch​(org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode, String branchName, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the `parallel` branch starts
      void onStartPipeline​(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the pipeline starts
      void onStartStageStep​(org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode, String stageName, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Just before the `stage`step starts
    • Constructor Detail

      • AbstractPipelineListener

        public AbstractPipelineListener()
    • Method Detail

      • onStartPipeline

        public void onStartPipeline​(@NonNull
                                    org.jenkinsci.plugins.workflow.graph.FlowNode node,
                                    @NonNull
                                    org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the pipeline starts
        Specified by:
        onStartPipeline in interface PipelineListener
      • onStartNodeStep

        public void onStartNodeStep​(@NonNull
                                    org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode,
                                    @Nullable
                                    String nodeLabel,
                                    @NonNull
                                    org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the `node` step starts.
        Specified by:
        onStartNodeStep in interface PipelineListener
      • onStartStageStep

        public void onStartStageStep​(@NonNull
                                     org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode,
                                     @NonNull
                                     String stageName,
                                     @NonNull
                                     org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the `stage`step starts
        Specified by:
        onStartStageStep in interface PipelineListener
      • onAfterStartNodeStep

        public void onAfterStartNodeStep​(@NonNull
                                         org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode,
                                         @Nullable
                                         String nodeLabel,
                                         @NonNull
                                         org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just after the `node` step starts.
        Specified by:
        onAfterStartNodeStep in interface PipelineListener
      • onEndNodeStep

        public void onEndNodeStep​(@NonNull
                                  org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode nodeStepEndNode,
                                  @NonNull
                                  String nodeName,
                                  org.jenkinsci.plugins.workflow.graph.FlowNode nextNode,
                                  @NonNull
                                  org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just after the `node` step ends
        Specified by:
        onEndNodeStep in interface PipelineListener
      • onEndStageStep

        public void onEndStageStep​(@NonNull
                                   org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode stageStepEndNode,
                                   @NonNull
                                   String stageName,
                                   org.jenkinsci.plugins.workflow.graph.FlowNode nextNode,
                                   @NonNull
                                   org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just after the `stage` step ends
        Specified by:
        onEndStageStep in interface PipelineListener
      • onAtomicStep

        public void onAtomicStep​(@NonNull
                                 org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode node,
                                 @NonNull
                                 org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the atomic step starts
        Specified by:
        onAtomicStep in interface PipelineListener
      • onAfterAtomicStep

        public void onAfterAtomicStep​(@NonNull
                                      org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode stepAtomNode,
                                      org.jenkinsci.plugins.workflow.graph.FlowNode nextNode,
                                      @NonNull
                                      org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just after the atomic step
        Specified by:
        onAfterAtomicStep in interface PipelineListener
      • onStartParallelStepBranch

        public void onStartParallelStepBranch​(@NonNull
                                              org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode stepStartNode,
                                              @NonNull
                                              String branchName,
                                              @NonNull
                                              org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the `parallel` branch starts
        Specified by:
        onStartParallelStepBranch in interface PipelineListener
      • onEndParallelStepBranch

        public void onEndParallelStepBranch​(@NonNull
                                            org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode stepStepNode,
                                            @NonNull
                                            String branchName,
                                            org.jenkinsci.plugins.workflow.graph.FlowNode nextNode,
                                            @NonNull
                                            org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just before the `parallel` branch ends
        Specified by:
        onEndParallelStepBranch in interface PipelineListener
      • onEndPipeline

        public void onEndPipeline​(@NonNull
                                  org.jenkinsci.plugins.workflow.graph.FlowNode node,
                                  @NonNull
                                  org.jenkinsci.plugins.workflow.job.WorkflowRun run)
        Description copied from interface: PipelineListener
        Just after the pipeline ends
        Specified by:
        onEndPipeline in interface PipelineListener