I've been trying out triggered pipelines (using the `triggers` section, as opposed to traditional selectors under `pipelines`). For simple custom pipelines it's working great, but I'd now like to invoke a custom pipeline with variables. Consider this sort of custom pipeline:
check-environment:
- variables:
- name: env
default: dev
allowed-values:
- dev
- test
- prod
- step:
- script: # ...
If the `variables` section isn't there, then this trigger works:
triggers:
pullrequest-push:
- condition: *anyChange
pipelines:
- check-environment
But since the `pipelines` array is defined to be strings, I can't do anything "intuitive" like this:
triggers:
pullrequest-push:
- condition: *anyChange
pipelines:
- pipeline:
name: check-environment
variables:
- env: test
Is there a way to invoke the custom pipeline above from a pipeline trigger like this? What is the syntax? A link to the docs would be great, too.