browser_ui/4_verify/pipeline/trigger_matrix_spec.rb | Verify Trigger matrix creates 2 trigger jobs and passes corresponding matrix variables
Steps
- Log into GitLab
- Create a project, setup runner for this project.
- Prepare CI files
- Parent pipeline: to trigger child pipeline and include matrix trigger (
Provider
(string) andStack
(array of strings)) - Child pipeline when triggered will print out environment variables (
$PROVIDER
and$STACK
) from parent pipeline
- Parent pipeline: to trigger child pipeline and include matrix trigger (
- Commit these files to their project accordingly
- Visit parent project
- Go to pipeline page and wait for pipeline to succeed
- Verify that parent pipeline triggers 2 child pipelines (one child pipeline for each stack item)
- Expand one of the child pipeline
- Click job 'test_vars' of this child pipeline
- Verify that job output has the appropriate
$PROVIDER
and$STACK
values - Remove runner at teardown.
Edited by GitLab QA Bot