Commit 8cfd805
Philip Skinner
CCM-981
Periodically this step in the pipeline will fail - this
requires APIM producers to have to press the retry button
in order to get a successful build. The manual retry process
is normally successful after only 1 retry.
The error thrown here is a 401 - this makes me believe that
token created within the `Get Apigee Access Token` step was
failing.
`jq` is being used to extract the .access_token path from
the JSON response - previously it was not returning an error
code when the payload did not contain the path. This updates
the `jq` call with the `-e` flag which will error when
`.access_token` is not within the response.
An automated retry mechanism for when this error occurs has
been added to this step. It uses the built in azure devops
retryCountOnTaskFailure which will automatically back off
on subsequent failures.
See https://learn.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml#number-of-retries-if-task-failed1 parent 334a6a6 commit 8cfd805
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
0 commit comments