Add support to user defined variable for manual_confirmation
requested to merge gitlab-community/gitlab:468971_add_defined_variable_on_manual_confirmation into master
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
What does this MR do and why?
Add support to user defined variable for manual_confirmation MR acceptance checklist
Connected to #468971
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
-
Add
.gitlab-ci.yml
with this contextvariables: GLOBAL_VAR: "A global variable" stages: - build - test build-job: stage: build variables: JOB_BUILD_VAR: "A job variable" script: - echo "Variables are '$GLOBAL_VAR' and '$JOB_BUILD_VAR'" when: manual manual_confirmation: "Variables are '$GLOBAL_VAR' and '$JOB_BUILD_VAR'" test-job: variables: JOB_TEST_VAR: "A job variable" script: - echo "Variables are '$GLOBAL_VAR' and '$JOB_TEST_VAR'" when: manual manual_confirmation: "Variables are '$GLOBAL_VAR' and '$JOB_TEST_VAR'"
-
Manual confirmation modal should be replaced by variables.
Edited by Phawin Khongkhasawan