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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.