diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a6a3c825399595e2606f44946d7495500072bd7..0fb37c5ab1656c390a2f9767788e96e23eff9957 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