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
54
votes
6 answers

How to set and read user environment variable in Azure DevOps Pipeline?

I have some test automation code that reads some values from an environment variable stored on my local machine, like this: Environment.GetEnvironmentVariable("SAUCE_USERNAME", EnvironmentVariableTarget.User); I'm trying to use Azure Pipelines to…
53
votes
4 answers

Azure pipeline does't allow to git push throwing 'GenericContribute' permission is needed

I'm trying push some changes done during Azure pipeline using cmd component as follows, steps: - script: | git config user.email you@you.com git config user.name "your name" git diff git add . git commit -m "version update [skip…
Channa
  • 3,267
  • 7
  • 41
  • 67
41
votes
3 answers

Azure DevOps Pipelines "Waiting for console output from an agent..."

I require something from the output of a running release task in order for it to complete (an authenticate code). But the console is now not updating. All I get is "Waiting for console output from an agent..." This happens on both our self-hosted…
41
votes
12 answers

Azure Web App deploy: Web Deploy cannot modify the file on the destination because it is locked by an external process

I am using the "Azure Web App Deployment" build step in VSTS to publish an ASP.NET Core API to an Azure Web App: Occasionally, this step breaks with the following error: [error]Microsoft.Web.Deployment.DeploymentDetailedClientServerException: …
40
votes
4 answers

How to share file(s) between YAML Stages in Azure DevOps

I am trying to deploy my node.js code to Azure Function App using Azure DevOps. I have created the following Azure DevOps pipeline using YAML. The problem I am facing is that on the deploy step, my pipeline is failing because it is not able to find…
TechiRik
  • 1,893
  • 6
  • 27
  • 37
37
votes
3 answers

How to publish Jest Unit Test Results in VSTS tests?

I've found some questions on SO specific to version for jest unit test to publish its result in VSTS build Test Results tab. But no proper solution is found.
Vishnu
  • 2,135
  • 2
  • 30
  • 51
31
votes
1 answer

Azure Pipeline Publish: task DotNetCoreCLI with specific folder or project

I'm having a problem (unwanted behavior) when running an Azure Build Pipeline with the following project/folder structure. My repository's root folder has two main folders: frontend (ASP.Net Core 2.x & Angular 7 project) backend (ASP.Net Core…
28
votes
3 answers

Azure Pipelines: I am getting fatal: could not read Username for 'https://github.com': terminal prompts disabled

I have powershell task configured in azure build pipelines to merge changes from dev into master of my github public repo and push changes to master. I am getting fatal: could not read Username for 'https://github.com': terminal prompts…
26
votes
2 answers

Visual Studio Team Services - edit link settings

I just noticed on Visual Studio Build task the following: To have parameters for common settings such as the solution file seems like a good idea to me, given that some parameters are used in more than 1 task... But I honestly don't like to use…
24
votes
7 answers

Fatal: Could not read password for 'https://OrganizationName@dev.azure.com': terminal prompts disabled

I'm trying to merge the develop branch to the master branch when building with Azure Pipelines PowerShell task. But while executing the command git push, I'm getting this error: Fatal: Could not read password for …
23
votes
1 answer

How to specify Solution file in Azure DevOps Pipeline

I am having trouble configuring an Azure DevOps Dotnet core build process. I have a simple dotnet core project which I am attempting to build in an Azure DevOps environment. The project is in a subfolder within my repo, but I cannot figure out how…
JLo
  • 3,207
  • 3
  • 20
  • 36
22
votes
4 answers

VS Test failing in Pipelines with missing 'Microsoft.NET.Test.Sdk'

I'm getting a failed builds due to the Visual Studio Test step failing in my Build Pipeline. I have a simple .NET Core v2.1 class library and associated MS Test library. I have 2 steps in my pipeline: A .NET Core build step, and A Visual Studio…
Kaine
  • 521
  • 1
  • 4
  • 12
21
votes
1 answer

DotNetCoreCLI restore vs NuGetCommand restore

I am trying to understand the difference between the two nuget restore commands in Azure build pipeline: - task: NuGetCommand@2 inputs: restoreSolution: '$(solution)' and - task: DotNetCoreCLI@2 inputs: command: 'restore' projects:…
19
votes
5 answers

Sonar fails with can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

I have just upgraded to SonarQube 6.4 and at the same time moved to mysql. Whenever I try to parse a particular solution I get the message: can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and…
JBelbute
  • 231
  • 1
  • 3
  • 7
18
votes
3 answers

How to publish artifacts separately for each project in solution from VSTS CI pipeline?

In my solution, I have two projects (a Asp.net MVC and a Windows Service). I want to create CI/CD pipeline to deploy web application and windows service on different VMs. But to achieve this my CI pipeline should be able to publish artifacts…
1
2 3
69 70