Bash - Usage

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

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

Bash

pipelines:
  - name:                       <string>
    steps:
      - name:           <string>
        type:           Bash
        configuration:
          affinityGroup:        bldGroup 
          priority:             <[0-10000]>
          timeoutSeconds:       <job timeout limit>
          nodePool:             <name of the nodePool>
          chronological:        <true/false>
          allowFailure:         <true/false>
          environmentVariables:
            env1:                       <string>
            env2:                       <string>
            env3:
              default:      <string>
              description:  <string>
              values:       <array>
              allowCustom:  <true/false>
          integrations:
            - name:             <integration name>
          inputSteps:
            - name:             <step name>
              status:
                - <terminal_status>
                - <terminal_status>
                - <terminal_status>
          inputResources:
            - name:             <resource name>
              trigger:          <true/false>    # default true
              newVersionOnly: <true/false>  # default false
              branch:       <string>        # see description of defaults below
          outputResources:
            - name:             <resource name>
              branch:       <string>        # see description of defaults below
          runtime:            
            type:                       <image/host>
            image:
              auto:
                language: <string>
                 version: <string>  # specifies a single version. Cannot be used if "versions" is defined.
                 versions:          # specifies multiple versions. Cannot be used if "version" is defined.
                               - <string>
              custom:
                name:                  <string>
                tag:                       <string>
                options:           <string>
                registry:          <integration>   # optional integration for private registry
                sourceRepository:  <path>          # required if registry is Artifactory. e.g. docker-local
                region:                            # required if registry is AWS. e.g. us-east-1
                autoPull:       <true/false>             # default true; pulls image before run

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