Forums

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

What is the order of precedence in pipelines when two artifacts with the same name exist?

James Meisler
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!
March 25, 2025

We have a pipeline that is doing double duty by deploying to both a staging environment and production. To accomplish this our pipeline has the following steps:

  1. Build staging .env file
  2. Build application for staging
  3. Deploy staging
  4. Build production .env file
  5. Build application for production
  6. Deploy production.

My question has to do with the fact that both steps 1 and 4 create artifacts called ".env". When step 2 runs, there's only one .env file artifact but there are potentially 2 when step 5 runs. Are artifacts overwritten when they have the same name or what? How can I be sure that step five uses the artifacts from step 4? 

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2025

G'day, @James Meisler 

Welcome to the community!

It’s difficult to provide a specific answer without seeing your YAML file, but generally speaking, if the artifacts are on different paths, having the same name shouldn’t be a problem. However, if they are on the same path, there could be an issue with overwriting.

You might want to consider generating the artifacts in separate paths for staging and production environments.

That said, if you need more in-depth support please raise a support ticket on our Support portal.

Regards,
Syahrul

Suggest an answer

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

Atlassian Community Events