Questions tagged [azure-pipelines-build-task]

Questions on extending the Visual Studio Team Services Build and Release Management system through extensions and custom tasks.

Build task for Visual Studio Team Services which enables you to extend the VSTS build system with your own custom tasks.

msdn: add-build-task

1042 questions
4
votes
0 answers

xUnit tests run locally, but don't run in Azure DevOps using .NET 6

This question is like one posted a year ago titled xUnit tests run locally but not on Azure DevOps. However, it is different enough to warrant a separate question. I'm developing an ASP.NET MVC project using .NET 6. And I've got an Azure CI Pipeline…
Rod
  • 4,107
  • 12
  • 57
  • 81
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
1 answer

Azure Devops self-hosted agent with docker

I have installed an Azure self hosted agent (Linux) and am following the documentation from https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops. I have succeeded in installing the agent however when I run a…
4
votes
0 answers

Azure Devops azure-pipelines.yml template unable to access stageDependencies

I have a stage set up in my build pipeline to detect changes in specific folders in my repo and then I use a condition based on the output variable to trigger or skip a build stage for each path. This works perfectly fine between my Detect and…
4
votes
1 answer

How to make COMReference work in Azure CI/CD pipeline

I have used a dll to my project which gets added to my project file as a COMReference like following {BDB6DDB5-5C02-492F-954E-68ED3D8F075D} 1
SZT
  • 1,771
  • 4
  • 26
  • 53
4
votes
2 answers

Azure pipelines task VSTest@2 failing with error - Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.Common.resources'

I’ve created .Net Core 3.1 API test case projects. My project has the following nugget packages. Microsoft.NET.Test.Sdk 15.3.0 Moq 4.16.1 xunit - 2.4.1 xunit.runner.visualstudio - 2.4.3 The unit test project executes properly in VS 2019 and all…
4
votes
1 answer

Choose build configuration according to branch name & parameter

I am using an Azure build pipeline to build a DotNet application. Until now, this build pipeline was configured to build in Release mode. What I want is to select the build configuration depending on the branch a commit has been pushed on: develop…
4
votes
1 answer

AzureDevOps Build Rest API: How to get all Warning count in build Task, exceed the limit of 10

I am trying to get on an AzureDevOps project the number of Warning for a build task. But I still only get the first 10 warnings. How do you do it all? I especially need the number of warning, not necessarily the detail of the warning var credential…
4
votes
1 answer

How do I pass OutDir value in azure-pipelines.yml for the VSBuild task?

This is how the task step looks. I am not able to get the output files into the $(Build.ArtifactStagingDirectory) directory. - task: VSBuild@1 inputs: solution: '$(solution)' platform: '$(buildPlatform)' configuration:…
Sourav Kundu
  • 408
  • 2
  • 14
4
votes
1 answer

How to add custom summary tab in the custom azure devops plugin, When Experimental Theme and Multi-stage Pipelines are in switched-on Mode?

Currently I'm developing a custom plugin to Azure devops, and met with an issue when I set a scan in the build pipeline, after scan completed, I was not able to see the custom summary tab, in the Azure devops 'Summary' tab section.As the root cause…
4
votes
4 answers

Is there a way to get the SubscriptionID used in task: "Azure Resource Group Deployment"

I am using Azure Resource Group Deployment task in Azure Devops. Some of the Override template parameters include the SubscriptionID. -virtualNetworkId…
jlo-gmail
  • 4,453
  • 3
  • 37
  • 64
4
votes
1 answer

Node Cipheriv Warning in Azure DevOps Extension - Release Task

I am working on a project to develop an Azure DevOps release task extension. Recently, I am getting this warning message printed multiple times in the logs when the release task runs- "Warning: Use Cipheriv for counter mode of aes-256-ctr". I was…
4
votes
1 answer

How to set input variables when debugging Azure DevOps custom Tasks in VS Code and TypeScript

Background: I'm building a custom build task for Azure DevOps. This task needs an input parameter, param1 It's written in VS Code (v1.30.1) and TypeScript (tsc --version state: v3.2.2) Problem When I try to debug my task I can't pass in variable…
4
votes
1 answer

How to cache directory contents in Azure Pipelines, and invalidate on a condition like package.json file changing?

For example, cache the contents of node_modules unless package.json changes. AppVeyor supports this, where somehow it knows that package.json changed and will invalidate its cached node_modules folder that it copies into the VM build work area.
enorl76
  • 2,562
  • 1
  • 25
  • 38
4
votes
1 answer

The VSTS\TFS 2017 Release definition fails to create Release artifact directory at 'C:\Agents\DA_CID22\r1\a'

Lately I have been facing this error for one of my release definition and I am not able to figure it out why is this happening. I tried manually deleting the folders inside the r1 directory but it fails to delete the 'a' folder i.e. artifact…