I am looking to use the environment keyword as shown below in job which has trigger.
deploy:
stage: deploy
environment:
name: develop
variables:
ENV: develop
trigger:
include:
- local: '<path to pipeline config>'
However, it is giving error "config contains unknown keys: environment"
It is working fine using "script" instead of trigger. Anyway it works with trigger ?