Questions tagged [azure-devops-pipelines]
269 questions
1
vote
2 answers
Azure Devops Pipeline - How to pass variable into Powershell function
I have Yaml pipeline with powershell task:
- task: PowerShell@2
inputs:
targetType: filePath
filePath: $(System.DefaultWorkingDirectory)\folder\script.ps1
arguments: >
-SP_TenantId…

Mski
- 13
- 1
- 3
1
vote
0 answers
Running Cypress tests on Deployments
We are using Azure DevOps Pipelines. I would like run our Cypress tests on our deployments. All Cypress docs and examples explain how to run tests on builds, but not deployments. We cannot run our tests on builds because we do not restore our DB…

chigolfer
- 117
- 3
- 7
1
vote
3 answers
Bug in Azure devops pipeline/VS templates/dockerfile?
Trying to deploy a multi-project app to azure using pipelines. After trying various combinations (pipeline log is showing about 75/80 runs in the last couple of days), it looks like the problem is with the Dockerfile by Visual Studio 2019 or with…

Kumar
- 10,997
- 13
- 84
- 134
1
vote
1 answer
How to format Azure DevOps console Logs
I am looking for a way to see the one line logs in azure devops to multiple lines. sometimes its difficult to debug the issues that are in one line.
Is their any way we can format the azure devops log such a way that all the log content should fit…

Sebastian Peter
- 119
- 1
- 12
1
vote
0 answers
Pipeline not triggered upon completion of another
I have set up my pipelines on Azure DevOps such that pipeline_A would trigger pipeline_B after successful completion. The yaml file for pipeline_B looks like this:
trigger: none
resources:
pipelines:
- pipeline: create_function
source:…

Melissa Rad
- 11
- 1
1
vote
1 answer
Azure DevOps pipelines: Read variable after updating its value in a previous task
I have two tasks in my pipeline- the first of which is a powershell-based task from the marketplace. It updates a build variable, using a logging command (e.g. Write-Host '##vso[task.setvariable variable=test]abc') which is persisted across build…

Adam Drewery
- 1,508
- 1
- 17
- 25
1
vote
1 answer
Azure DevOps pipeline usage between/across Organizations
I am working on a task (a spike) which is about investigating the usage of pipeline (exists in) organization-1 to another organization-2.
So far I have found nothing on the Microsoft documentation about the usage of pipelines/projects/repos across…

Capri82
- 418
- 6
- 24
1
vote
1 answer
how to trigger pipeline from only feature/topic branch in azure devops?
I'm trying to develop a pipeline from feature-branch.
sample-code:
trigger:
branches:
include:
- deploy-pipeline/sql/test/*
exclude:
- deploy-pipeline/pipeline/*
- deploy-pipeline/sql/sample_scripts/*
Here…

bunty
- 11
- 3
1
vote
1 answer
Can Azure DevOps pipelines be run in a specific order?
Our repository contains a couple of CI pipelines for some services as a mono-repo. These pipelines deploy images to a docker image registry.
I want to run a separate pipeline to do the CD part, which pulls in the images from the registry and deploys…

mrsauravsahu
- 2,046
- 2
- 15
- 21
1
vote
2 answers
Use Docker Hub image as artifact for Azure DevOps release pipeline
I have created a multi-stage build pipeline for Azure DevOps that pushes a built image to Docker Hub. I am now trying to set up a release pipeline that will use that image as its build artifact. I have set all of that up using my configured service…

David Keaveny
- 3,904
- 2
- 38
- 52
1
vote
1 answer
Azure DevOps YAML Pipelines prevent newer runs if old one queued
I have a pipeline with a number of stages, e.g.:
Canary -> Dev -> UAT -> Prod
For each stage we have approvals set so a team member has to allow a build to proceed to the next stage. Sometimes we have long periods between stages being approved…

mattb
- 384
- 1
- 4
- 24
1
vote
1 answer
Azure DevOps Construct Naming Convention
Do we have an official, Microsoft defined naming convention for Azure DevOps Pipeline concepts, variables, parameters and any other constructs?
Encountered this documentation which only defines naming restrictions for high level concepts such as,…

Chiranga Alwis
- 1,049
- 1
- 25
- 47
1
vote
1 answer
Azure DevOps Pipeline dotnet ef migrations fails with local artifacts
My Azure DevOps Pipeline needs to access some NuGet packages stored in Azure DevOps Artifacts feed.
The package source artifact is defined in of nuget.config:
…

Stefano
- 313
- 1
- 4
- 13
1
vote
1 answer
Job condition evaluates to "null" after it is used in a previous stage
The structure of my PR pipeline looks like this:
trigger: none
resources:
- repo: self
variables:
- template: templates/variables.yaml
pool:
vmIMage: $(vmImageName)
stages:
- template: templates/changed.yaml
parameters:
comparedTo:…

cjones
- 8,384
- 17
- 81
- 175
1
vote
1 answer
Stage condition is not evaluating to true despite the value being true
I have a condition for a stage to run. The condition is true, but the stage keeps being skipped and I'm not sure why.
This is the stage:
stages:
- stage: UnitTests
displayName: Run unit tests on service...
condition:…

cjones
- 8,384
- 17
- 81
- 175