From c0fc12eabeb1bb98e109f66f4ead9a751ea708bc Mon Sep 17 00:00:00 2001 From: Chase Qi <chase.qi@linaro.org> Date: Thu, 11 Nov 2021 14:16:38 +0800 Subject: [PATCH] ci: submit lava test jobs for zephyr tests on nitrogen Signed-off-by: Chase Qi <chase.qi@linaro.org> --- .gitlab-ci.yml | 9 +++++++++ .oniro-ci/test-generic.yaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69f46bb8..53e9fd62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -144,6 +144,15 @@ lava-qemu-x86: rules: - when: never +lava-zephyr-96b-nitrogen-tests: + needs: [zephyr-96b-nitrogen-tests] + stage: test + extends: .lava-test + variables: + CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/nitrogen-test.yaml" + CI_BUILD_JOB_NAME: zephyr-96b-nitrogen-tests + CI_REPORT_JOB_NAME: lava-report + lava-report: needs: [lava-linux-avenger96, lava-qemu-x86_64, lava-qemu-x86] extends: .lava-report diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index 36d8308b..5101bb80 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -21,7 +21,7 @@ && exit 1 ) script: # Build callback URL for the "report" job - - curl --silent "https://git.ostc-eu.org/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=100" > jobs-manual.json + - curl --silent "https://booting.oniroproject.org/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=100" > jobs-manual.json - job_id="$(jq -r ".[] | select(.name == \"$CI_REPORT_JOB_NAME\") | .id" jobs-manual.json)" - build_job_id="$(jq -r ".[] | select(.name == \"$CI_BUILD_JOB_NAME\") | .id" jobs-manual.json)" - CALLBACK_URL="https://git.ostc-eu.org/api/v4/projects/$CI_PROJECT_ID/jobs/${job_id}/play" -- GitLab