PromoteBuild - YAML Schema

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

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

PromoteBuild

pipelines:
  - name:   <string>
    steps:
      - name: <string>
        type: PromoteBuild
        configuration:
          #inherits all the tags from bash
          targetRepository:      <string>
          includeDependencies:   <boolean>    # default false
          status:                                <string>  
          comment:                               <string>
          copy:                                  <boolean>

          inputResources:
            - name:         <BuildInfo resource>     # required
              trigger: false
          outputResources:
            - name:         <BuildInfo resource>     # required

        execution:
          onStart:
            - echo "Preparing for work..."
          onSuccess:
            - echo "Job well done!"
          onFailure:
            - echo "uh oh, something went wrong"
          onComplete: #always
            - echo "Cleaning up some stuff"