Upgrades to Pipelines Artifacts: New Artifact Types & Selective Download

We’re announcing two enhancements to Bitbucket Pipelines artifacts with:

  1. New artifact types: shared and scoped.
  2. Selective download: Specify which artifacts to download in a step.

New Artifact Types:

Selective Download:

You can now control which artifacts download in a step by specifying the download field as a list.

download:
  - "Artifact 1"
  - "Artifact 2"

Why use these new features?

Example: Pipeline YAML with new artifact types and selective download

pipelines:
  default:
    - step:
        name: 'Step 1'
        script:
          - echo "upload one shared and one scoped artifact"
        artifacts:
          upload:
            - name: "My application jar"
              type: "shared"
              paths:
                - "target/*.jar"
              depth: 2
            - name: "Build logs"
              type: "scoped"
              paths:
                - "logs/**"
              capture-on: failed
    - step:
        name: 'Step 2'
        script:
          - echo "upload one more shared artifact"
        artifacts:
          upload:
            - name: "My application jar 2"
              type: "shared"
              paths:
                - "target2/*.jar"          
    - step:
        name: 'Step 3'
        script:
          - echo "download only first artifact"
        artifacts:
          download:
            - "My application jar"

Important information:

Feedback

We’re always keen to hear your thoughts and feedback – if you have any questions or suggestions on this feature, feel free to share via the Pipelines community space.

Exit mobile version