Skip to content

Move the trigger branch definition into script/utils.sh

What does this MR do and why?

This MR addresses an incorrectly hard-coded CNG branch name used in rails-production-server-boot-puma-cng job, as reported in !136764 (comment 1649020988).

Re: Make sure CNG pipeline uses the branch that mat... (#429717 - closed)

How to test

  1. The updated script can be found working in the following 2 jobs where the value of TRIGGER_BRANCH is set to 16-6-stable after stubbing the target branch to be 16-6-stable-ee:
  1. Without the stubbing from step 1, TRIGGER_BRANCH then holds the value of master because this MR is actually targeting the master branch:

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jennifer Li

Merge request reports