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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Pipeline: Pass list to download attribute?

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.
Nov 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