File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 148148if [[ " ${SMART_RETRIES:- } " == " true" && " ${BUILDKITE_RETRY_COUNT:- 0} " -gt 0 ]]; then
149149 echo " --- Resolving previously failed tests"
150150 BUILD_JSON=$( curl -H " Authorization: Bearer $BUILDKITE_API_TOKEN " -X GET " https://api.buildkite.com/v2/organizations/elastic/pipelines/${BUILDKITE_PIPELINE_SLUG} /builds/${BUILDKITE_BUILD_NUMBER} " )
151- ORIGIN_JOB_ID=$( printf ' %s\n' " $BUILD_JSON " | jq -r--arg jobId " $BUILDKITE_JOB_ID " ' .jobs[] | select(.id == $jobId) | .retry_source.job_id' )
151+ ORIGIN_JOB_ID=$( printf ' %s\n' " $BUILD_JSON " | jq -r --arg jobId " $BUILDKITE_JOB_ID " ' .jobs[] | select(.id == $jobId) | .retry_source.job_id' )
152152 BUILD_SCAN_URL=$( printf ' %s\n' " $BUILD_JSON " | jq -r --arg job_id " $ORIGIN_JOB_ID " ' .meta_data["build-scan-" + $job_id]' )
153153 BUILD_SCAN_ID=$( echo " $BUILD_SCAN_URL " | sed ' s|.*/s/||' )
154154 DEVELOCITY_FAILED_TEST_API_URL=" https://gradle-enterprise.elastic.co/api/tests/build/${BUILD_SCAN_ID} ?testOutcomes=failed"
You can’t perform that action at this time.
0 commit comments