Questions tagged [multistage-pipeline]

41 questions
12
votes
4 answers

Azure multistage pipelines: conditionally skip one stage but not the next

I have an Azure multi-stage CI/CD pipeline. It has stages for Test and UAT deployment. I want the UAT release to run if Test succeeds or is skipped, but not if it fails. I can't. Whatever I try, if Test is skipped, UAT is also skipped. Unless I…
8
votes
2 answers

Skipping stage based on commit message

I am trying to set Azure DevOps to skip a stage on a multi-stage pipeline if a message does not start with a given text. From the examples documentation, I think it is just - stage: t1 condition:…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
6
votes
3 answers

Azure DevOps Conditional execution of Job that depends on a Job in another Stage

I have a pipeline.yaml that looks like this pool: vmImage: image stages: -stage: A jobs: -job: a steps: - script: | echo "This is stage build" echo "##vso[task.setvariable…
6
votes
3 answers

How to get stage results from YAML pipelines in Azure DevOps

Until now, I am using the Azure DevOps REST Api to get the data from releases in Azure DevOps for reporting purpose. Obviously, this will change with the new way how to use CI/CD --> YAML and the Multi-Stage-Pipeline (currently preview). In that…
5
votes
1 answer

Pass variables from one job to an other in an azure multi stage pipeline (YAML)

I have a very basic YAML azure pipeline jobs: - job: Foo steps: - bash: | echo "Create variable xyz" echo "##vso[task.setvariable variable=xyz;]yes" displayName: 'Determine slot name' - bash: | echo "Var is: $(xyz)" …
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
4
votes
2 answers

Deploy a preexisting artifact in a Azure DevOps Multi-Stage pipeline

In Azure DevOps classic pipelines you can have a build pipeline for creating the artifact and a release pipeline for deploying it. This means that whatever stored prexisting artifact could be deployed simply launching the release pipeline and…
Josto
  • 137
  • 11
4
votes
2 answers

Azure pipelines - "Stages to run" does not work

Clicking on the new feature "Stages to run" on a multi-stage pipeline, I got the error message "Unable to load the pipeline's stages." Is this feature still in a sort of preview status? Yaml files below: pipeline file build template deploy…
Salvo
  • 41
  • 1
  • 5
4
votes
1 answer

How to share files between jobs

Is it possible for two jobs to share files in multi-stage pipeline builds? Publish stage has dotnet publish job (single task) and publish artifacts job (single task). However, the output from dotnet publish doesn't seem to be available to publish…
devlife
  • 15,275
  • 27
  • 77
  • 131
4
votes
1 answer

DevOps Pipeline - can't find packages during build step

I'm trying to shift an existing ASP.NET MVC web application away from TeamCity and on to Azure DevOps however I can't seem to get my pipeline to find the packages that it restored from the NuGet package restore task. The solution has multiple…
3
votes
1 answer

Azure DevOps Pipeline with environments get stuck

I created an environment and registered a virtual machine (on prem) as a resource Whenever I try to run the deployment in the resources, the pipeline gets stuck in the deployment stage. Inside of the job, the only log that I see is JOb is…
havan
  • 164
  • 2
  • 11
3
votes
4 answers

Azure DevOps Yaml pipelines: Stage condition variable syntax

I am working on a azure devops multi stage yaml pipeline. I set a variable in the first stage and then for the next stage, I have a condition based on that variable. I am also retrieving the variable value in the next stage. Apparently there is…
DevOpsy
  • 667
  • 1
  • 8
  • 18
3
votes
1 answer

How can I use variables at condition expressions on templates in Azure Devops

I have multiple pipelines that are being built from a multistage yaml (extends: template:) and i want to set conditions on which jobs and steps should run when i pass a variable. So in this case i want to set the variable 'Migrations=false' and skip…
Zahid
  • 91
  • 1
  • 10
3
votes
1 answer

Azure devops yaml: release to multiple web nodes

I'm trying to figure out how I can use yaml pipelines to deploy an application to a multi web-node environment. I'm trying to create a pipeline with 2 stages. Stage 1 will build the project, and stage 2 will deploy it to a staging environment. This…
PaulVrugt
  • 1,682
  • 2
  • 17
  • 40
2
votes
1 answer

Azure DevOps pipeline, how to write the condition for a stage template to run it for different environments

I have three stages, Dev, QA and Prod and I need to execute the same set of exactly same jobs for all three stages. I have made a stage template and I am calling it from my main Azure DevOps pipeline. Depending on the build branch, I need to deploy…
2
votes
2 answers

Azure DevOps multi-stage pipeline deployment to specific environment

We've prototyped a multi-stage YAML pipeline in Azure DevOps. One thing that we need is the ability to manually deploy to one of several environments directly. In other words, we may want to deploy to Dev environment or to Test environment. I can…
GaTechThomas
  • 5,421
  • 5
  • 43
  • 69
1
2 3