From 4de7caa331c3455ecb224b3ea852baa215e31696 Mon Sep 17 00:00:00 2001 From: Teake Nutma <t.a.nutma@rug.nl> Date: Thu, 16 Jun 2022 16:44:53 +0200 Subject: [PATCH] Add quotes because yaml --- templates/testreport/diff.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/testreport/diff.yml b/templates/testreport/diff.yml index 280b995..f02b1ef 100644 --- a/templates/testreport/diff.yml +++ b/templates/testreport/diff.yml @@ -17,7 +17,7 @@ # So, first determine the previous pipeline. - LAST_PIPELINE_SUCCESS=$(gitlab --output json project-pipeline list --project-id $CI_PROJECT_ID --ref $TEST_REPORT_DIFF_REF --scope finished --status success | jq 'first.id') - LAST_PIPELINE_FAILED=$(gitlab --output json project-pipeline list --project-id $CI_PROJECT_ID --ref $TEST_REPORT_DIFF_REF --scope finished --status failed | jq 'first.id') - - LAST_PIPELINE=$(( LAST_PIPELINE_SUCCESS > LAST_PIPELINE_FAILED ? LAST_PIPELINE_SUCCESS : LAST_PIPELINE_FAILED )) + - 'LAST_PIPELINE=$(( LAST_PIPELINE_SUCCESS > LAST_PIPELINE_FAILED ? LAST_PIPELINE_SUCCESS : LAST_PIPELINE_FAILED ))' - echo "Previous pipeline on ${TEST_REPORT_DIFF_REF} was ${LAST_PIPELINE}." # Determine the previous job. - LAST_JOB=$(gitlab --output json project-pipeline-job list --project-id $CI_PROJECT_ID --pipeline-id $LAST_PIPELINE | jq ".[] | select(.name==\"${TEST_REPORT_JOB}\") | .id") -- GitLab