Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Artifacts controll between steps

Alexey Bulenkov December 12, 2022

Hi. Have a question about artifacts control between stages. I have pipeline which have these steps:
- build using test environment
- run tests using "build/*" artifacts from previous step
- deploy "build/*" artifacts on test stage
- build using prod env and save "build/*" artifact
- manual deployment "build/*" artifacts to production

The problem that artefacts was merged in final step, but I need only artifacts from production build. I try to use option "artifacts download: false" - but it's not help. I know that I can save artifacts in builds/dev and builds/prod - but for that I need add extra steps and after that pipeline seems ugly and overloaded.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2022

Hi Alexey,

I'm afraid that this is not possible to achieve at the moment. All artifacts that are created in a step are available to all the following steps, and if you don't disable artifact download for a step, then all artifacts will be downloaded.

One way to work around this would be by generating the artifacts of step 1 and step 4 in different directories, as you mentioned. Another option would be to use two different custom pipelines, one for the first three steps and another one for the other two steps. Please keep in mind though that custom pipelines can be manually triggered or scheduled, they do not run automatically.

We have a feature request for preventing a step from downloading specific artifacts:

If this is something you'd be interested in, I would suggest adding your vote to the feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events