Questions tagged [azure-pipelines-tasks]

216 questions
2
votes
1 answer

Azure DevOps Docker@2 Task passes despite build failure

I am building a pipeline in Azure DevOps and trying to create a job that builds a Docker image. My intention is that the step fails if the Docker build is failing but against my expectations the tasks still passes even though the build has…
2
votes
2 answers

How to parametrize Azure DevOps Deployment YAML Pipelines to deploy to multiple environments

I have an Azure DevOps Deployment YAML Pipeline that creates an Azure App Service and deploys code to it. The actual pipeline is more complex, but I am simplifying it for this question. Currently my pipeline can successfully deploy to a specific…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
2
votes
1 answer

Azure Pipelines (YAML) - Running script and passing in parameters

I have an Az Powershell script (let's just call it ```DeployApps.ps1```) which I run from the commandline, having initialised a couple of variables which get passed into the script as parameters. The script will basically deploy the named…
2
votes
1 answer

Replace Tokens Task Ambiguity Issue in Azure YAML pipeline

I’m having some namespace conflict issues with a particular task in the YAML pipeline for Azure. Here's the code for the "replace tokens" task I'm having issues with: - task: replacetokens@4 displayName: Replace tokens in…
2
votes
3 answers

Work around for Docker layer caching not working in Azure Pipeline

I'm hoping to cache a specific stage in my multi-stage Dockerfile that my test stages use in an effort speed the build process up. Otherwise, it builds for unit testing and then for integration testing. Here is a bare bones example of one of the…
2
votes
1 answer

How to use driver-related CLIs for driver creation in a highly restricted Azure DevOps Pipeline environment?

I'm porting some Jenkins builds into a highly restricted ADO Pipeline environment. When making some CAT files the MakeCAT utility was being used and when verifying INF files the InfVerif tool was being used. In our company's highly restricted ADO…
2
votes
1 answer

Parameters to use for callback to InvokeRESTAPI Azure Pipeline task

Following the provided documentation for the Azure Pipeline InvokeRESTAPI task, I am trying to use the callback feature. The waitForCompletion argument must be true, and the callback triggered as follows. To signal completion, the external service…
2
votes
0 answers

Pull Request Code Coverage Fails with azure dev ops

We have the branch policy Status Check set to “On” and assigned the Pull Request pipeline. This is for blocking the merge if the code is not meet the percentage of code coverage Also we have some files excluded from code coverage which is added into…
2
votes
0 answers

How to copy files from a linux agent to windows agent in Azure DevOps release pipeline?

I have to run a Linux docker image for performing testing in Azure DevOps release pipeline. Hence, I have used; Agent Pool : Azure Pipelines and Agent Specification: ubuntu-20.04 for that task. Now, result of this test has to be send as an email.…
2
votes
1 answer

Azure DevOps Release Pipeline - Run a task when a specific previous task failed

I am using classic editor release pipeline and the requirement is to run a 'send email' task when a specific task fails. How can we configure custom condition for this requirement? When we use the Azure provided condition 'Only when a previous task…
2
votes
0 answers

Get list of commits messages since previous build in an Azure Devops Pipeline custom extension task

I'm implementing a custom extension in which I need to get the list of commit messages since the previous build in an Azure Devops Pipeline. Build n (commit n, commit n-1) Build n-1 (commit n-2, commit n-3) This answer points at the…
codependent
  • 23,193
  • 31
  • 166
  • 308
2
votes
2 answers

Publish Test Results task in Azure Devops

I am running my build and release pipeline in TFS/AZureDevopsServer-2019, below is the YAML used in azure-pipeline.yml When the pipeline runs it does not generate Analytics Build Pipeline How ever as per "…
2
votes
2 answers

Is there a publish task for .NET Framework? (NOT .NET Core)

According to MSDocs here, there is a task to publish .NET Core with arguments. dotnet publish --output $(Build.ArtifactStagingDirectory) But I have a .NET Framework application, not .NET Core, which means i use MSBuild task not dotnetcore task to…
2
votes
1 answer

How to structure Azure Devops Pipelines for test & Release environments?

I'm new to Azure DevOps and am looking to create the correct pipeline/release structures for my projects. I'm struggling to get to the point of how I'd build my code passing in the correct value for my build configs. I have created my repo and…
2
votes
1 answer

Azure Pipelines - File Transform set different values to different files with the same key

I am trying to use the task FileTransform to modify the values of grafana json templates. And it's working for modifying the values of somes keys the following way: - task: FileTransform@2 displayName: "Transform Jsons" inputs: folderPath:…
1 2
3
14 15