TriggerPipeline - YAML Schema

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

The YAML schema for the TriggerPipeline native step is as shown below. For more information on TriggerPipeline Pipeline steps, see TriggerPipeline.

TriggerPipeline

pipelines: 
  - name:   <string>
    steps:
      - name: <string>
        type: TriggerPipeline
        configuration:
          #inherits all the tags from bash

          pipelineName:   <string>   # required
          stepName:       <string>   # required
          branchName:     <string>   # optional. recommended if target is multibranch.
          projectKey:     <string>   # optional. recommended if target belongs to a project.
          waitForRunCompletion:    <boolean>    # optional. default is true.
          integrations:
            - name:       <JFrog Platform Access Token integration>  # required

        execution:
          onStart:
            - echo "Preparing for work..."
            - set_trigger_payload stepVariables "test=true"
            - set_trigger_payload pipelineVariables "notify=true" "version=5.4.3"
                        - export pipelines_poll_interval_seconds=30 # defaults to 10
          onSuccess:
            - echo "Job well done!"
          onFailure:
            - echo "Something went wrong"
                        - echo "Nested run status is: ${nested_run_status}"
          onComplete:
            - echo "Cleaning up"