Commit 9cc26af
committed
TECH_DEBT: Add QA2 environment support to get_deployed_commit.py
The Deploy_All_Services pipeline has offered scale-qa2 as an environment since
82f073a, but get_deployed_commit.py only recognized dev-scale, scale-test and
scale-qa. Selecting QA2 failed the Summarize job with "Unknown environment
'scale-qa2'", which skipped the dependent Deploy job.
- Map scale-qa2 to a QA2_BASE_URL environment variable, alongside the existing three
- List scale-qa2 in the unknown-environment and empty-BASE_URL error messages
- Document scale-qa2 in the script docstring and the Scripts/README.md row
- Mention QA2 in the pipeline's environment parameter displayName
Verified by running the script against scale-qa2 with QA2_BASE_URL set to
https://qa2-admin.nhsnlink.org, which resolved the deployed commit 78b98b4 from
/api/info. Unknown environments and the direct https:// URL argument are unchanged.
Requires a QA2_BASE_URL variable to be added in Azure DevOps wherever QA_BASE_URL is
already defined; without it the script reports the empty-BASE_URL error rather than
querying the wrong host.1 parent e54a921 commit 9cc26af
3 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | | - | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments