From 851b421ec3f05bd60c0fb68e0096500ff00e471e Mon Sep 17 00:00:00 2001 From: Kyle Wiebers Date: Thu, 19 Sep 2019 11:46:29 -0500 Subject: [PATCH] Fixing flaky nightly report Closed #144 --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a6a3c8..0fb37c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,11 +91,11 @@ latest_flaky_report: stage: build script: - apt-get update && apt-get install -y jq - - last_master_pipeline_id="$(curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/pipelines\?ref\=master\&status\=success\&private_token\=$API_TOKEN | jq '.[0] | .id')" + - last_master_pipeline_id="$(curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/pipelines\?ref\=master\&status\=success\&private_token\=$API_TOKEN | jq '.[0] | .id')" - echo $last_master_pipeline_id - - update_tests_metadata_job_id="$(curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/pipelines/$last_master_pipeline_id/jobs\?per_page\=100\&page\=2\&private_token\=$API_TOKEN | jq '.[] | select(.name == "update-tests-metadata") | .id')" + - update_tests_metadata_job_id="$(curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/pipelines/$last_master_pipeline_id/jobs\?per_page\=100\&page\=2\&private_token\=$API_TOKEN | jq '.[] | select(.name == "update-tests-metadata") | .id')" - echo $update_tests_metadata_job_id - - wget --quiet --output-document=data/report-suite.json https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/jobs/$update_tests_metadata_job_id/artifacts/rspec_flaky/report-suite.json\?private_token\=$API_TOKEN + - wget --quiet --output-document=data/report-suite.json https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/jobs/$update_tests_metadata_job_id/artifacts/rspec_flaky/report-suite.json\?private_token\=$API_TOKEN - bin/flaky-report --report-file data/report-suite.json --group-by file > data/grouped-by-file.txt - bin/flaky-report --report-file data/report-suite.json --group-by type > data/grouped-by-type.txt - bin/flaky-report --report-file data/report-suite.json --group-by date > data/grouped-by-date.txt -- GitLab