GoPublishModule - YAML Schema

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide

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

GoPublishModule

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

          forceXrayScan:        <boolean>         # optional
          failOnScan:           <boolean>         # default true
          autoPublishBuildInfo: <boolean>         # optional
          
          # for payloadType module:
          sourceLocation: <string>                # optional
          version: <string>                       # required
          targetRepository: <string>              # required
          self: <boolean>                         # optional
          deps: <string>                          # optional 
          resolverRepo: <string>                  # optional

          integrations:
            - name:         <artifactory integration or JFrog platform access token integration>  # required if autoPublishBuildInfo is false
          inputResources:
            - name:         <gitrepo resource>         # required
            - name:         <filespec resource>        # optional
          outputResources:
            - name:         <buildinfo resource>       # required 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"