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
1 answer

Azure DevOps - .NET Core Build Include Web.config file

I'm using Azure DevOps for building and releasing a .NET Core MVC web application to a Windows Server 2016 EC2 instance in AWS. I have different environments, so I've created the following appsettings.json files: appsettings.DEV.json…
4
votes
1 answer

Azure Devops Pipeline - Specify Target Framework with DotNetCoreCLI@2

Is it possible to specify the target framework for a ClassLibrary project using Azure Devops Build Pipelines and the DotNetCoreCLI@2 task? Or do we have to revert to using a script and manually calling the dotnet publish command? A snippet from my…
JLo
  • 3,207
  • 3
  • 20
  • 36
4
votes
1 answer

How to install and use dotnet core tool (CLI) in Azure Pipelines (VSTS) Build Task?

I want to create custom build task, that would do invoke dotnet core CLI tool. I've used VSTS DevOps Task SDK/node to get or install the tool: import tl = require('vsts-task-lib/task'); async function getLibmanTool() { let libmanExePath =…
4
votes
2 answers

Task execution section of task definition for Id : .... is either missing or not valid

I have an Azure Pipelines definition with two consecutive tasks Run build Manual approval step for QA work (depends on build) In azure-pipelines.yml: jobs: - job: Build ... - job: QualityAssurance pool: server dependsOn: Build steps: -…
jsalonen
  • 29,593
  • 15
  • 91
  • 109
4
votes
1 answer

Creating a command that will run in the background in VSTS

I'm trying to create a task in some testing task group (for the CI) which will execute a server (That will run in the background) and continue to the next task. But what actually happens, is that it just gets stuck in the "run server" task. These…
Drxxd
  • 1,860
  • 14
  • 34
4
votes
1 answer

VSTS "Windows Machine File Copy" task failed: ErrorMessage: 'The network path was not found'

in VSTS, is it possible to copy files build in VSTS to my local PC? I found a task called "Windows Machine File Copy" and I tried to use it to copy file to my local PC. There is a machine field: machine field And I followed instruction to fill my PC…
Xinyu Wang
  • 41
  • 1
  • 4
4
votes
1 answer

Display test result from Newman on vsts

I have a vsts build where I run newman tests, tests work file but I do not get any report back even though the command i sent. the steps are 1) installing newman on build agent 2) running tests newman run collection.json…
4
votes
2 answers

Build error in Xcode on cloud-hosted Mac on VSTS

I'm getting following error while building my project on cloud no such module 'RxCocoa' import RxCocoa ** BUILD FAILED ** The following build commands failed: CompileSwift normal arm64 CompileSwiftSources normal…
4
votes
0 answers

VSTS Release Management: Visual Studio Test Task

We have a release definition setup within VSTS with a Visual Studio Test task to run our automated test suite. The problem we're experiencing is that the release is succeeding regardless of whether there are failing tests or not. There doesn't…
4
votes
1 answer

Parsing Json success condition on Release Gate or ServerGate task

I'm trying to piece together a Release Gate / ServerGate build task calling a webservice, grabbing the Json and then deciding whether to proceed. The Json returned by the service looks like this: { "publisher": { "publisherId":…
4
votes
1 answer

Nuget restore fails in vsts

My solution compiles in VS2017 and VisualStudioVersion = 14.0.25420 Nuget restore fails in vsts build definition.Have performed below steps: I have referred below links and tried executing them, but still same error was thrown: Using the latest…
4
votes
1 answer

Build Monorepo in VSTS only when package changed

When using a monorepo in VSTS, sometimes I only update one package in a commit, not everything. In that case, I only want to run the build for that particular piece and nothing else. I'm using continuous integration so it will build anytime…
4
votes
5 answers

Deploying to AWS Lambda from Visual Studio Team Services, Dotnet Lamba Not Found

I have created a .Net Core 2.0 Web API and am trying to deploy it using Visual Studio Team Services and the AWS Lambda .Net Tools, according to this:…
4
votes
1 answer

Passing secureObject array as VSTS variable

I have an ARM template that deploys Key Vault and populates it with secrets. It does creates secrets, based on how many arrays are in the parameter secretsObject. For example if I have: "secretsObject": { "type": "secureObject", "defaultValue":…
4
votes
2 answers

VSTS: Test runner finds no tests

I have a .net 4.6 MVC app and a standard test project which was generated by Visual Studio with a few controller tests. These all discover and pass in VS test runner but I'm trying to get VSTS to execute these tests now and fail the build if any…