GradleBuild - YAML Schema

JFrog Pipelines Documentation

ft:sourceType
Paligo

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

GradleBuild

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

          gradleCommand:                <string>  #required
          sourceLocation:       <string>  #optional
          configFileLocation:   <string>  #optional
                  configFileName:               <string>  #optional
          resolverRepo:         <string>  #optional
                  deployerRepo:             <string>      #optional
                  usesPlugin:           <string>  #optional
                  useWrapper:               <string>      #optional
                  forceXrayScan:                <boolean> #optional
          failOnScan:           <boolean>   #optional; default true
                  autoPublishBuildInfo: <boolean> #optional
          inputResources:
                        - name: myGitRepo       
                        - name: artifactoryFileSpec     
                  outputResources:
                        - name: myBuildInfo
          integrations:
                        - name: myArtifactory 
        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"