From 3fbc9d3e9b7604df93d1256003dc55bbbfabe7fe Mon Sep 17 00:00:00 2001
From: Pedro Pombeiro <noreply@pedro.pombei.ro>
Date: Mon, 21 Feb 2022 14:56:45 +0100
Subject: [PATCH] Fix trigger-build variables

The recent changes broke the gitlab-com-database-testing job
---
 scripts/trigger-build.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/trigger-build.rb b/scripts/trigger-build.rb
index 17cbd91a8eeff..a3356c664d19d 100755
--- a/scripts/trigger-build.rb
+++ b/scripts/trigger-build.rb
@@ -324,8 +324,8 @@ def self.access_token
     def invoke!(post_comment: false, downstream_job_name: nil)
       pipeline = super
       gitlab = gitlab_client(:upstream)
-      project_path = base_variables['TOP_UPSTREAM_SOURCE_PROJECT']
-      merge_request_id = base_variables['TOP_UPSTREAM_MERGE_REQUEST_IID']
+      project_path = variables['TOP_UPSTREAM_SOURCE_PROJECT']
+      merge_request_id = variables['TOP_UPSTREAM_MERGE_REQUEST_IID']
       comment = "<!-- #{IDENTIFIABLE_NOTE_TAG} --> \nStarted database testing [pipeline](https://ops.gitlab.net/#{downstream_project_path}/-/pipelines/#{pipeline.id}) " \
                 "(limited access). This comment will be updated once the pipeline has finished running."
 
-- 
GitLab