Hi everyone,
I wanted to ask for help with manual pipelines.
I am looking for the best approach in the following setup:
Say I have 1 repo. I need manually to run several different pipelines(set of jobs) which require different input variables.
Bitbucket for example:
custom:
pipeline1:
- variables:
- name: variable
default: value1
allowed-values:
- value1
- value2
- step: *some-step
pipeline2:
- variables:
- name: anotherVariable
default: value1
allowed-values:
- value1
- value2
- value3
- step: *another-step
- step: *one-more-step
And from ui you can select needed pipeline and see the required set of variables.
In gitlab what I am doing now: using “switch” variable which is used by jobs to define what will be added to pipeline.The problem is that on ui all variables are seen and passed to pipelines, since I define them at global level
variables:
MANUAL_PIPELINE_TYPE:
value: "type1"
description: "The type of manual pipeline to run"
options:
- "type1"
- "type2"
- "type3"
VARIABLE1:
value: "value3"
description: "Some description"
options:
- "value1"
- "value2"
- "value3"
VARIABLE2:
value: "value1"
description: "Some description"
options:
- "value1"
- "value2"
Maybe you have any suggestions or examples?
Thanks in advance