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
5
votes
3 answers

Azure Pipelines Hosted Agent Can't Access DevOps project Feed

I have an Azure DevOps project (just one). I have a Build Pipeline set to run in the "Hosted VS2017" Agent Pool. This Agent Pool appears to be in the [MyProject]\Build Administrators, Contributors, Project Administrators, and Release Administrators…
Jeff
  • 35,755
  • 15
  • 108
  • 220
5
votes
2 answers

Why does my VSTS custom task passes with exit code 1?

I've the following annoying problem. My custom VSTS build task won't fail. It always passes, while the $LASTEXITCODE is other then zero. The code does as expected. It generates an error in the log. Despite that, the step succeeds and the build /…
5
votes
1 answer

VSTS build fails with MSB3325, Cannot import PFX key file

I had created a build definition to build a desktop application online on visualstudio.com which fail at task Build Solution (Visual Studio build) with following error, [error]C:\Program Files (x86)\Microsoft Visual …
5
votes
1 answer

How do I enable Code Coverage for .NET Standard Library (2.0) project in VSTS (CI)

Please help me - How do I enable/show code coverage result for .NET Standard library project (2.0) in VSTS (CI). Have enable Test result through dotnet Test task (.NET Core 2.0 preview) and able to to see the passed Test cases. Next step I have…
5
votes
3 answers

VSTS Build Task Input Types

I googled last few days to get the list of input types supported by VSTS Task plugin, but don't get anything appropriate. Is this possible to create Grid in task plugin
5
votes
1 answer

Generate Key Vault Secrets automatically

We need to create and Key Vault and populate it (or generate) with secrets, then reference them as passwords to SQL servers (PaaS) at the next build step. What would be the best approach to do that?
5
votes
1 answer

VSTS. Reference concatenated variables

I was wondering if it possible to reference concatenated variable name1 and name2 as part of build process? Suppose I'd like to create a resource group called winning-development. Where name1=winning-, and name2=development.
WinBoss
  • 879
  • 1
  • 17
  • 40
5
votes
1 answer

VSTS File Copy Failing

I have a task group that contains a Copy File task. That Copy File task is used in 3 different deployments. Two of which works fine but the third does not and I cannot figure out why. The Copy File task gives this error ##[debug]testing directory…
Chris
  • 26,744
  • 48
  • 193
  • 345
5
votes
1 answer

Ignore files within the 'Delete Files Task'

As part of my install scripts for Visual Studio Online (VSO / VSTS) I delete the files in my directory shortly after uninstalling the services. We have configuration files and logs that I'd like to preserve but everytime I try to tell the 'Delete…
5
votes
3 answers

Remove files and foldes on Azure before a new deploy from VSTS

As part of my build process in VSTS I want to delete all files and folders (except af few) from my azure site before a new deploy. My guess is, that using a Azure Powershell script would be a good idea and I would prefer making an inline script. I…
5
votes
3 answers

Visual Studio Team Service fails Task Docker Build

I'm trying to run build Docker task to create a docker image. I set up a docker host, I'm using defautl Docker Hub as registry and my whole environment is on Azure. When I queue a build task it fails at Task Docker. Log output: check path :…
5
votes
4 answers

VSTS Build: Replacing token with build number

I'm trying to update a web.config app setting called 'AppVersion' with the build number when building my application in VSTS. Here are my build steps: The 'Replace tokens' step converts any variables you set for your build and replaces the tokens…
Johnny Rambo
  • 213
  • 3
  • 9
5
votes
1 answer

Run Selective Test Classes in VSTS

In Visual Studio Team Services (VSTS) when defining a build I can filter specific tests to be included or excluded when running tests. Question: How do I filter complete test classes from execution? The example in the screenshot demonstrates how I…
5
votes
1 answer

VSTS Build vNext NuGet custom package source

We have an Azure Entreprise Agreement with a main subscription to which a VSTS account is bound. We have setup the Package Management extension in order to host some usefull packages for diferent projects. For each customer, we create a subscription…
Loul G.
  • 997
  • 13
  • 27
5
votes
3 answers

Adding errors to build summary from PowerShell script running in VSTS

In VSTS, I am using a PowerShell task to run one of my script. The script contains the following: Write-Error 'error 1' Write-Error 'error 2' Since the Write-Error cmdlet writes on stderr, these messages get reported in the VSTS web interface: I…
mabead
  • 2,171
  • 2
  • 27
  • 42