Skip to content

Fix branch mapping logic to ensure correct environment assignment#1263

Open
EamonnODonnell wants to merge 3 commits intoopendevstack:masterfrom
EamonnODonnell:bugfix/EDPC-4079-shared-library-branch-mapping
Open

Fix branch mapping logic to ensure correct environment assignment#1263
EamonnODonnell wants to merge 3 commits intoopendevstack:masterfrom
EamonnODonnell:bugfix/EDPC-4079-shared-library-branch-mapping

Conversation

@EamonnODonnell
Copy link
Contributor

Shared library was not handling branchToMapping properly. Branches whose name starts with branches defined in the branchToEnvironmentMapping property AND where there was NO exact match listed in the branchToEnvironmentMapping property would attempt to deploy rather than skip deployment (as no environment mapped).

The code change enforces that branches defined in the branchToEnvironmentMapping property that do not end with "/" should require an exact match before triggering a deployment

@hrcornejo
Copy link
Contributor

Please @EamonnODonnell fix:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants