Core Concepts
...
Pipelines
Steps
Trigger Pipeline
3min
initiate execution of a pipeline from another pipeline this step is useful for splitting the automation process in two or more pipelines for better management and reusability of automation this step will initiate the pipeline execution and will not wait for pipeline to finish pipeline execution will continue running asynchronously syntax microtica yaml steps step name type trigger pipeline pipeline "2efeaf06 7d87 4092 ba66 94877c6f2d47" # pipeline id branch filter master # optional ref refs/heads/master # optional parameter description required title the display name of the step no type the type of the microtica built in step should always be trigger pipeline for this type of step yes pipeline the id of an existing pipeline to be triggered yes branch filter initiate pipeline execution only for commit/manual trigger on specified branch if not specified, pipeline will be triggered on every pipeline execution e g develop, feature/upgrade eks etc no ref branch or tag ref the triggered pipeline should pull the code from default refs/heads/master no trigger pipeline when commits are made on specific branch microtica allows you to trigger another pipeline only if the parent pipeline was trigged from a specific branch or tag this is very useful for use cases when you want to split pipeline logic in two or more pipelines for example, you can have one pipeline that runs the build, test and packaging and triggers another pipeline that deploys the code on specific environment (dev, test, prod) based on branch the parent pipeline was triggered from microtica yaml steps clone title clone my source code from git type git clone buildandtest title build and test my service image node 12 alpine commands \ npm install \ npm run build triggeranotherpipeline title trigger my deployment pipeline type trigger pipeline pipeline "2efeaf06 7d87 4092 ba66 94877c6f2d47" # pipeline id branch filter develop ref refs/heads/develop given the above configuration, the pipeline will trigger another pipeline with id 2efeaf06 7d87 4092 ba66 94877c6f2d47 only if the parent pipeline was triggered from branch develop by setting the ref value to develop branch we tell the pipeline to pull the code from develop branch