Artifact Examples

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

Example 1

resources:
  - name: artifact_1
    type: Artifact
    configuration:
      jfrogPlatformProvider: jfrogPlafromTokenIntegration    # required
      repositories:                            # required
        - example-repo-local
      artifactPath:                            # optional
        include:
          - tools/*
        exclude:
          - tools/exclude/*
      buildOn:                                 # required
        deployed: true
        cached: true
        deleted: true
      branches:                                # required
        include: artifactResource              # required
  - name: artifact_2
    type: Artifact
    configuration:
      jfrogPlatformProvider: myIntegration    # JFrog Platform Access Token integration
      repositories:
        - example-repo-local
      artifactPath:
        include:
          - default/*
          - tools/*
      buildOn:
        deployed: true
      branches:
        include: artifactResource

pipelines:
  - name: my_pipe_1
    configuration:
      jfrogCliVersion: 2
    steps:
      - name: step_1
        type: Bash
        configuration:
          inputResources:
            - name: artifact_1
        execution:
          onExecute:
            - echo "executing step_1"
  - name: my_pipe_2
    steps:
      - name: step_2
        type: Bash
        configuration:
          inputResources:
            - name: artifact_2
        execution:
          onExecute:
            - echo "executing step_2"
            - echo "sync started"