We got a pipeline that varies on branches, tags and pull-requests. Now we want to share the default pipeline code via the "import-pipeline" feature.
pipelines:
branches:
import-pipeline:
import: shared-pipeline:master:common-branches
tags:
import-pipeline:
import: shared-pipeline:master:common-tags
pull-requests:
'**':
import: shared-pipeline:master:common-pull-request
This does not seem to work. Is it possible to share on this level? The examples don't use the categories
I realized that "import-pipeline" is not any directive - should have read the documentation in more details. I got it to work with:
pipelines:
branches:
release:
import: shared-pipeline:master:common-branches-release
master:
import: shared-pipeline:master:common-branches-master
tags:
'**':
import: shared-pipeline:master:common-tags
pull-requests:
'**':
import: shared-pipeline:master:common-pull-requests
default:
import: shared-pipeline:master:common-default
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.