File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,13 +124,6 @@ jobs:
124124 -F "variables[RELEASE_KIND]=dev" \
125125 -F "variables[WHEEL_FILENAMES]=${WHEEL_FILENAMES}" \
126126 "${GITLAB_CI_TRIGGER_URL}")
127- RESPONSE_JSON="$response" python - <<'PY'
128- import json
129- import os
130-
131- response = json.loads(os.environ["RESPONSE_JSON"])
132- print(
133- f"Triggered GitLab pipeline {response['id']} "
134- f"with status={response['status']}"
135- )
136- PY
127+ pipeline_id=$(printf '%s' "$response" | sed -n 's/.*"id":\([0-9][0-9]*\).*/\1/p')
128+ pipeline_status=$(printf '%s' "$response" | sed -n 's/.*"status":"\([^"]*\)".*/\1/p')
129+ echo "Triggered GitLab pipeline ${pipeline_id:-unknown} with status=${pipeline_status:-unknown}"
Original file line number Diff line number Diff line change @@ -507,13 +507,6 @@ jobs:
507507 -F "variables[RELEASE_KIND]=dev" \
508508 -F "variables[WHEEL_FILENAMES]=${WHEEL_FILENAMES}" \
509509 "${GITLAB_CI_TRIGGER_URL}")
510- RESPONSE_JSON="$response" python - <<'PY'
511- import json
512- import os
513-
514- response = json.loads(os.environ["RESPONSE_JSON"])
515- print(
516- f"Triggered GitLab pipeline {response['id']} "
517- f"with status={response['status']}"
518- )
519- PY
510+ pipeline_id=$(printf '%s' "$response" | sed -n 's/.*"id":\([0-9][0-9]*\).*/\1/p')
511+ pipeline_status=$(printf '%s' "$response" | sed -n 's/.*"status":"\([^"]*\)".*/\1/p')
512+ echo "Triggered GitLab pipeline ${pipeline_id:-unknown} with status=${pipeline_status:-unknown}"
Original file line number Diff line number Diff line change @@ -532,13 +532,6 @@ jobs:
532532 -F "variables[RELEASE_KIND]=stable" \
533533 -F "variables[WHEEL_FILENAMES]=${WHEEL_FILENAMES}" \
534534 "${GITLAB_CI_TRIGGER_URL}")
535- RESPONSE_JSON="$response" python - <<'PY'
536- import json
537- import os
538-
539- response = json.loads(os.environ["RESPONSE_JSON"])
540- print(
541- f"Triggered GitLab pipeline {response['id']} "
542- f"with status={response['status']}"
543- )
544- PY
535+ pipeline_id=$(printf '%s' "$response" | sed -n 's/.*"id":\([0-9][0-9]*\).*/\1/p')
536+ pipeline_status=$(printf '%s' "$response" | sed -n 's/.*"status":"\([^"]*\)".*/\1/p')
537+ echo "Triggered GitLab pipeline ${pipeline_id:-unknown} with status=${pipeline_status:-unknown}"
You can’t perform that action at this time.
0 commit comments