Commit 5807fa7
committed
Protected against expected Artifactory JSON
Update curl command to Artifactory to ensure that the response JSON has
at least one expected field.
Prior to this commit, it was possible for Artifactory to return an HTTP
200 response with a failure JSON payload of the form:
{"message":"RBv2 spring:spring-release-bundles-v2/<redacted> was
not found","status_code":404}
We now pipe `curl` output to `jq` and use that to ensure at least one
expected field is present.
Closes gh-448131 parent 02ab29a commit 5807fa7
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
0 commit comments