Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×My Central template has below
export: true
definitions:
steps:
- step &1
- step &2
- step &3
pipelines:
master:
- step *1
- step *2
Project based template:
pipelines:
branches:
master:
import: shared-pipeline:branch:master
Now my question is can i create project specific steps in the project based template if so whats the syntax.
Thanks
Hi @shiva raj and welcome to the community!
Are you looking to add additional steps to the master pipeline of the project based template? (If not, please provide more details on what exactly you are trying to do, so I can better help you.)
If so, since you are using an imported pipeline, you can achieve this with parent/child pipelines:
A sample yml file is the following:
pipelines:
branches:
master:
- step:
type: pipeline
custom: imported-child-pipeline
- step:
script:
- echo "step 2"
- step:
script:
- echo "step 3"
custom:
imported-child-pipeline:
import: shared-pipeline:branch:exported-pipeline
Would this work for you? Please keep in mind this feature has some limitations, which are mentioned in the blog post I shared.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.