MvnBuild - YAML Schema

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

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

MvnBuild

pipelines: 
  - name:   <string>
    steps:
      - name: <string>
        type: MvnBuild
        configuration:
          #inherits all the tags from bash
          mvnCommand:           <string>      # optional
          sourceLocation:       <string>      # optional
          resolverSnapshotRepo: <string>      # optional
          resolverReleaseRepo:  <string>      # optional
          deployerSnapshotRepo: <string>      # optional
          deployerReleaseRepo:  <string>      # optional
          forceXrayScan:        <string>      # optional
          failOnScan:           <boolean>     # default true
          autoPublishBuildInfo: <string>      # optional
          configFileLocation:   <string>      # optional
          configFileName:       <string>      # optional

          integrations:
            - name:         <Artifactory integration or JFrog platform access token integration>  # required
          inputResources:
            - name:         <GitRepo resource>         # required
            - name:         <FileSpec resource>        # optional
          outputResources:
            - name:         <BuildInfo resource>       # if autoPublishBuildInfo is true

        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"