Questions tagged [multistage-pipeline]
41 questions
2
votes
1 answer
Conditional insertion in YAML templates with variables at build time Azure DevOps
Is there a way to use varaiables defined in the pipeline(dashboard) to use conditional insertion on a YAML template for steps:
I mean i have this steps:
- ${{ if eq(variables.['somevar'], '')}}:
- task: Bash@3
displayName: Var does not…

Zahid
- 91
- 1
- 10
2
votes
1 answer
Can you use build tags in conditions statements in multi-stage devops pipelines
Is it possible to use the build tags set on a multi-stage pipeline build, in the condition section of a later stage?
##### task in build stage #####
- task: YodLabs.VariableTasks.AddTag.AddTag@0
displayName: Adding environment tag to…

sofcal
- 490
- 3
- 7
2
votes
1 answer
Multi-stage YAML pipeline does not apply environment-specific XML transformation
I transformed steps executed within a typical release pipeline into a multi-stage YAML pipeline.
The problem is that the Web.config (XML) transformation applied by the AzureRmWebAppDeployment@4 task does not work as previously anymore.
The…

timmkrause
- 3,367
- 4
- 32
- 59
1
vote
2 answers
AzureDevops stage dependsOn stageDependencies
How to create a multi-stage pipeline depending on a stage/job-name derived from a parameter whereas stages run firstly in parallel and eventually one stage that waits for all previous stages?
Here's what I've tried so far:
A multi-stage pipeline…

Lyn
- 125
- 2
- 11
1
vote
0 answers
Gitlab CI/CD: conditionally run downstream multistage pipeline from upstream pipeline
I am trying to trigger a downstream pipeline only when the artifact in the upstream pipeline is not available. I am using Gitlab CE v13.5.1.
The idea is:
Prebuild stage: curl from nexus and check if the artifact is
available. If yes, do not run the…

sd1517
- 607
- 4
- 7
- 23
1
vote
1 answer
Having to separate YAML files for pipelines
I have 2 pipelines currently one is linked to my dev branch and one is linked to my master branch. But both the YAML files have the same name but have different scripts within it so the problem is when I merge my dev into my production branch it…

weewoo
- 135
- 1
- 5
- 10
1
vote
1 answer
Pass output variable to different stages
I have a pipeline in Azure DevOps that essentially look like this
stage: BuildStage
job: SetUp
job: Compile
stage: DeployStage
job: Deploy
In the SetUp job I define an output variable, which I can define in the Compile job using…

Krumelur
- 31,081
- 7
- 77
- 119
1
vote
1 answer
How to add Pre Deployment and Post deployment approvals in multistage YAML pipeline?
I have a Multistage YAML pipeline containing two stages 1) Build and 2) Deploy. Deploy stage is mentioned below and I want to add pre deploy approvals in that stage before deploy task. How can I add pre deployment and Post deployment approvals in…

Jay Bhiyani
- 313
- 1
- 4
- 14
1
vote
1 answer
Create service connection and use the same in next stage of azure devops multi stage yaml pipeline
I have two yaml templates defined one for creating a docker registry service connection and second for deploying some stuff via container job. The second template uses the docker registry connection which is being deployed in first template. When I…

user3616775
- 75
- 1
- 10
1
vote
2 answers
Azure devops multi-stage YAML combined with manual interaction
I'm just reading about the multi-stage pipelines which sound awesome.
As far I understand, the stages run after each other, now suppose I have the following stages
stages:
stage: Deploy to acc
...
stage: Deploy to prd
I don't want to…

Jeanluca Scaljeri
- 26,343
- 56
- 205
- 333
1
vote
1 answer
Using ARM Templates from external repository
I'm working with azure multistage pipelines, using deployment jobs with templates in a separate repo. I'm currently starting to use ARM templates in my deployment process and want to run ARM templates that are located in a different repository as…

Michael
- 1,201
- 1
- 8
- 15
0
votes
0 answers
Azure Devops: MultiStage Yaml Pipeline - Linked WorkItems always showing +50
For our project, we created a multistage yaml pipeline which will trigger after CI pipeline completes.
a. Checked Automatically link work items included in this run
Problem:
suppose CI build trigger with a 5 number of linked workitems. However in…
0
votes
1 answer
List multi-stage automated test run results, on a per-stage basis, using Azure DevOps GET Api?
Is there a way to list multi-stage automated test run results, on a per stage basis, using Azure DevOps GET Api?
If you call /_apis/pipelines/{pl_def_id}/runs , you will get a list of builds from a defined pipeline.
If you get the latest build from…

djangofan
- 28,471
- 61
- 196
- 289
0
votes
1 answer
Run two stages in Azure DevOps Pipeline "partially" parallel
I have two stages in my Azure DevOps pipeline. One with Pulumi Preview (let's call it Preview) and one with Pulumi Up (Up) in order to run my infrastructure as code.
Both run from the same container and it takes a while to pull it. I want to…

Tensing2009
- 45
- 5
0
votes
2 answers
Azure Pipeline: Unexpected value 'steps'
Can anybody point me in the right direction here?
When I attempt to kick off the pipeline from the main yaml template the reference template gives me the unexpected 'steps' value.
I attempted to add a stage before the defined job and then receive…

Taylor83
- 17
- 6