Selective pipeline stage execution by using triggers
You can set webhook triggers to run specific pipeline stages using the Allow selective stage(s) executions? option.
Currently, this feature is behind the feature flag,
CDS_NG_TRIGGER_SELECTIVE_STAGE_EXECUTION. Contact Harness Support to enable the feature.
Make sure that you have met the following requirements:
- You have a Harness pipeline with a CD stage.
- You have set the service and infrastructure as runtime inputs so that you can provide the value in Trigger> Configuration tab.
Execute a specific pipeline stage using triggers
Select a pipeline whose stage you want to execute using triggers.
Make sure that the Selective Execution Settings> Allow selective stage(s) executions? in Advanced Options of the pipeline is set to Yes.
When you create a trigger, in the Configuration tab, select the stages you want to execute.
Here is a sample trigger YAML:
- name: stage3var