diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-04 00:10:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-04 00:10:35 +0300 |
commit | 16f41a5b04934bb7a7a26ac2d6516cb44b7932e3 (patch) | |
tree | dd3f93c5a6760d456528d6f932db6450bf5bb553 /scripts/rspec_helpers.sh | |
parent | bbc36645d34c557df40d031a1a41fbd05e491644 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/rspec_helpers.sh')
-rw-r--r-- | scripts/rspec_helpers.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/rspec_helpers.sh b/scripts/rspec_helpers.sh index 7ac6b98938f..a3565db58fa 100644 --- a/scripts/rspec_helpers.sh +++ b/scripts/rspec_helpers.sh @@ -94,11 +94,14 @@ function retrieve_previous_failed_tests() { local rspec_pg_regex="${2}" local rspec_ee_pg_regex="${3}" local pipeline_report_path="test_results/previous/test_reports.json" - local project_path="gitlab-org/gitlab" + + # Used to query merge requests. This variable reflects where the merge request has been created + local target_project_path="${CI_MERGE_REQUEST_PROJECT_PATH}" + local instance_url="${CI_SERVER_URL}" echo 'Attempting to build pipeline test report...' - scripts/pipeline_test_report_builder.rb --instance-base-url "https://gitlab.com" --project "${project_path}" --mr-id "${CI_MERGE_REQUEST_IID}" --output-file-path "${pipeline_report_path}" + scripts/pipeline_test_report_builder.rb --instance-base-url "${instance_url}" --target-project "${target_project_path}" --mr-id "${CI_MERGE_REQUEST_IID}" --output-file-path "${pipeline_report_path}" echo 'Generating failed tests lists...' |