Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline: Pass list to download attribute?

david_treblig
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 16, 2022

Hi,

I was wondering if it's possible to pass an artifacts list to download instead of having them all download when I need only one of them. This would speed up my pipeline a lot since I use rather large artifacts. I swear I've seen this done before, but I might be wrong. 🤔

 

In an example like this one, the artifact would download, extract, scripts would be able to edit the data and then it would be reuploaded and passed to further steps... ðŸ¤”


artifacts:
  download:
     - web/app/themes/**
  paths:
    - web/app/themes/**


1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2022

Hey @david_treblig 

G'day.

You can disable artifact downloading on certain steps that do not require any artifacts by adding the download false flag in YAML as the following example:

    - step:
        name: Integration test
        image: node:10.15.0
        caches:
          - node
        script: # By default, download artifacts from the previous step
          - cat reports/tests.txt
          - npm run integration-test
    - step: 
        name: A step that doesn't need artifacts
        artifacts:
          download: false # Disabling artifact downloads during this step
        script:
          - echo "Hello World!" > hello.txt

As above example, the 1st step will download artifacts while the 2nd step will skip downloading artifacts.

However, if you wish to only skip one of the many artifacts you have in steps, then I believe it's currently not possible. The flag only worked by skipping all artifacts downloaded.

For more information, please check the artifacts page here. 

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events