Questions tagged [azure-pipelines-tasks]

216 questions
11
votes
6 answers

Visual Studio 2022 not listed in devops build solution pipeline task

I have an on-prem instance of Azure DevOps 2020.1.1 in the build pipeline I have a build solution task which has visual studio version set to "latest" when building a .NET6 project this fails saying of course .NET6 isn't supported because the latest…
11
votes
1 answer

How to force an Azure DevOps pipeline to fail if any previous tasks have failed?

My YAML-based Azure DevOps pipeline contains several tasks in which continueOnError: true. I did this deliberately so that I can run all test suites even when some of them fail (each task runs a different suite of tests). At the moment the build is…
8
votes
1 answer

How to properly do file transforms on Azure Pipelines

I am attempting to do file transforms on my Web.config depending on each environment I publish to. Mostly, everything looks fine until I deploy to my UAT stage on the release pipeline. In my build pipeline, here is the YAML file that I am using: #…
7
votes
2 answers

How to delete Azure pipeline artifacts after it's finished?

I have the following pipeline structure: Job A --> Generate build files Parallel: Job B --> Uses the build files Job C --> Uses the build files Job D --> Publishes the build files Job E --> Release On finish, I want to delete the build files…
7
votes
2 answers

Use runtime variable for repository name in checkout in Azure Pipelines

I have a matrix in a multi-stage pipeline that generates jobs to go and checkout to different git repositories and make commits. The matrix has the repo name as a value, and I want to reference that during a checkout task. However I keep getting…
7
votes
2 answers

How to generate code coverage report for asp.net unit tests in Azure DevOps build

I need guidance in generating code coverage report of Asp.net unit tests in azure build pipeline. My project is based on .Net Framework 4.6. I am able to run all the unit tests using "visual studio test" task. I tried the "report generator" task,…
6
votes
2 answers

Azure App Service deploy task option to remove files in container upon deployment

I am deploying a python web app using Web App on Linux service and using a DevOps release pipeline. The pipeline task that I am using is called AzureRmWebAppDeployment@4. Between deployments, the files in the container are not being removed and this…
6
votes
2 answers

How to see the Predefined Variables in Azure Devops

I want to see the values that is path of predefined variable like for $(System.DefaultWorkingDirectory) i want to see value stored in it. I am unable to find this variable value so where can i find it in Azure devops. In simple words, how could i…
5
votes
3 answers

##vso[task.complete result=Failed;] is not failing a script step

I thought that a call to ##vso[task.complete result=Failed;] should make the script step where it is called fail immediately but I have now seen one case in my pipeline where this is not the case. Is my assumption wrong or there a bug in the Azure…
Marko
  • 929
  • 9
  • 27
5
votes
2 answers

Azure DevOps pipeline kubectl task command: rollout unavailable

Hi I am trying to implement the rollback for Kubernetes deployments using this guide, https://adrianbumbas.com/rollback-kubernetes-deployments-with-azure-devops-pipelines/. However, when adding a new kubectl task into the pipeline, I was unable to…
4
votes
1 answer

CopyFiles Task not picking up files

Using Azure DevOps YAML in a database project build and release pipeline This bit of code correctly picks up my four dacpac files, I can see these being copied in the console - task: CopyFiles@2 displayName: Copy build output to artifacts…
Nick.Mc
  • 18,304
  • 6
  • 61
  • 91
4
votes
1 answer

can we execute sql query in serverless pool from pipeline azure synapse?

Can we execute SQL query in the serverless pool from the pipeline in Azure Synapse? We are trying to run the SQL query in the Synapse pipeline, we are not able to find a way to execute the same from the pipeline using the serverless pool.
4
votes
2 answers

Azure CLI 2.x is not installed on this machine

I'm trying to upload blobs using "az storage blob upload-batch". I got below two exceptions. ##[error]Azure CLI 2.x is not installed on this machine. ##[error]Script failed with error: Error: Unable to locate executable file: 'pwsh'. Please verify…
3
votes
1 answer

Delay task in Azure Pipeline cannot be cancelled

I have a recurring issue with an Azure Pipeline YAML template that cannot be cancelled once started. The template defines a release stage that includes 3 jobs: stage: Release jobs: - job: Wait steps: - task: Delay@1 …
3
votes
2 answers

How to use a variable group in a Azure Pipelines yml template?

So I'm working on a bunch of pipelines and I've set everything up using yml templates. However I struggle with getting protected variable expanded inside of my template steps. I've tried passing in the protected variables by normal means, but they…
1
2 3
14 15