You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.