I'm looking for the reason why the DEV Environment is not executed immediately after the Testing stage. The general rule is that I have two pipelines: the first one does only Testing, then it triggers the second pipeline, which should perform the actual deployment using Terraform on the Dev Environment. The first part works, i.e., the first pipeline triggers the second one correctly, but the triggered one does not start the Dev Environment.
pipeline.yaml
name: MySource
resources:
repositories:
- repository: Library
ref: test/pipeline
trigger:
batch: true
branches:
include:
- test/pipeline
parameters:
- name: pipelineMode
displayName: Pipeline Mode
type: string
default: main
values:
- auto
- feature
- main
- release
# rest of the code goes here
It should trigger that one below:
dependant_pipeline.yaml
trigger: none
resources:
repositories:
- repository: Library
ref: test/pipeline
pipelines:
- pipeline: test-triggered
project: DEV
source: 'library'
trigger:
branches:
include:
- test/pipeline
parameters:
- name: pipelineMode
displayName: Pipeline Mode
type: string
default: main
values:
- auto
- feature
- main
- release
extends:
template: main-pipeline.yml
parameters:
devEnv: dev
devVar: dev_variables.yml
deployEnvTemp: deploy.yml
Taking a very quick look at your code I see a few problems in dependant_pipeline.yaml
:
A few parameters are missing: devEnvironment
, devVariables
, deployEnvironmentTemplate
and deployParameters
You forgot to pass the pipelineMode
parameter to /templates/build.yml