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

Error running pipeline for branch definition

Boris Kravchenko May 28, 2024

 

I have the following workflow. 

The prod branch pipeline runs with the following branch definition:

master:
- step:
<<: *Env_Settings
name: Prod Env Settings
deployment: prod
- parallel:
- step: *xxxx
- step: *xxxx
- step: *xxxx
- parallel:
- step: *test_commit
- step: *hotfix_fe_commit

 

At the end, in the last parallel step, when the commits are made to hotfix_fe_commit, that will kick of the hotfix_fe branch pipeline, which has the following definition:

 

hotfixfe:
- step:
<<: *Env_Settings
name: Prod Settings
deployment: prod
- parallel:
- step: *xxxx
- step: *xxx
- step:
<<: *xxx
- parallel:
- step: *test_commit
- step: *hotfix_commit

On the very first step( named "Prod Settings"), I am getting following error:

This pipeline was paused because prod can not be deployed to from the hotfixfe branch.

 

I am not sure why this is causing an error. My intention is to reuse the deployment environment and I know that you cannot reuse an environment in the same pipeline. But the commit kicks of a brand new pipeline, so I believe that I should be able to reuse the deployment environment.

My branch restrictions are identical for both branches that use this deployment environment. Is there something else potentially happening? 

 

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2024

Hi Boris,

Deployments can be configured to run only on certain branches. This can be done from Repository settings > Deployments > select a certain deployment environment > there is an option there Branches allowed to deploy to <environment name>. Based on the message you posted here, it looks like this is the case for the prod deployment environment in this repo.

If you are an admin of a repository, you can see it following the steps I outlined (the Repository settings option is only visible to admins). If you are not an admin, you can reach out to an admin of the repo and discuss the possibility of adding the branch hotfixfe to the branches that are allowed to deploy to prod.

Just a heads up, I edited the error message in your post to remove the link to the repo URL for privacy reasons.

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events