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

Force npm install to install optional dependencies for other platforms

I'm building a build task for Visual Studio Team Services. In this task I'm using 7zip-bin to package the binary for 7zip for linux, mac and windows. This is all nice and it would work if I had the ability to deploy just the package.json to the…
jessehouwing
  • 106,458
  • 22
  • 256
  • 341
7
votes
2 answers

Why TFS Build Step Extension Icon Is Missing?

I created a new extension for TFS following MS tutorial. For some reason when I'm adding Icon to my extension I can see this icon when I'm installing the extension and in the "Extension Manager" page, But when I choose my extension from the build…
Aviram Fireberger
  • 3,910
  • 5
  • 50
  • 69
7
votes
1 answer

PhantomJS not captured when ran via build server

I am using Karma and PhantomJS with Jasmine to test my AngularJS. When I run my gulp test locally it works fine, launches PhantomJS and runs all my tests, but when the tests get run on the build server it fails with the following errors: Note that…
Chris
  • 26,744
  • 48
  • 193
  • 345
6
votes
3 answers

How build artifacts are managed in Azure DevOps pipeline?

I am setting up a new Azure DevOps pipeline for my webapp. I can see that the build artifacts are saved in a path called $Build.ArtifactStagingDirectory. Where this path variable is pointing to and how long I can access my artifact? Also, Does Azure…
Leo Varghese
  • 165
  • 1
  • 2
  • 12
6
votes
1 answer

Using VS2019 with TFS2018 vnext build system

Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select "Latest" as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested…
6
votes
1 answer

Access file content within an Azure Dev Ops/VSTS artifact using REST API

I am looking to get the contents of a file I pushed as an artifact to Azure DevOps I was able to get a json response with a URL to the artifact zip by using this…
6
votes
1 answer

What are the "Pre-job" and "Post-job" tasks appearing in Azure DevOps Pipeline Logs?

I've got my Pipeline tasks as follows: (key one is Signing and aligning APK file(s) one). When I am looking at logs of the build(s), apart from the Signing and aligning APK file(s) task logs there I also see Pre-job: Signing and aligning APK…
Agat
  • 4,577
  • 2
  • 34
  • 62
6
votes
1 answer

PackageReference Versioning Wildcard csproj

I have the following in my NetStandard Project When I change it to use the wildcard (instead of 1.0.1) I get an exclamation mark on the dependencies toggle, then…
6
votes
1 answer

How to run filters on dotnet tests

I have a build in VSTS, as follows: You can see from the screen shot there's a test step to "Test and generate code coverage". It uses this command: /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura …
6
votes
1 answer

VSTS build agent failed with get sources: Permission denied

I have seen a couple of posts, but it did not help me. I have created around 10 Linux machines in Azure and added them to agent pools. First, the build succeeded, but when I queued the build again, it failed at get sources with the below error. My…
6
votes
2 answers

VSTS Online Portal: Un-Nesting Build Folders on Release

I'm trying to set up automatic build + deploy for a rather large solution. The single solution produces 2 zip folders in the "$(Build.ArtifactStagingDirectory)" location, and these contain all the right files. For the purposes of…
6
votes
6 answers

Increase the screen resolution on Test Agent

Running a automated test against a desktop WPF application works fine on my local machine and on Azure VM Windows Server 2012R2 when accessed via RDP. However, when the VM is used as build machine, controlled by test agent on TFS or VSTS, all test…
6
votes
2 answers

Run "node test" as part of Visual Studio Team Services build task with results in "tests" tab

I have a project that contains tests that I am running with Mocha from the command line. I have set up a test script in my packages.json, which looks as follows: "test": "mocha ./**/*.spec.js --reporter dot --require jsdom-global/register" I have…
6
votes
1 answer

ANDROID_HOME not set (VSTS agent running as service on OS X)

I have configured the VSTS agent on my MacBook Pro and it works perfectly when I manually run it (using ./run.sh). However when I configure the VSTS agent to run as a service (using ./svc.sh install and ./svc.sh start) and queue a new build in VSTS…
5
votes
0 answers

An error occurred "Variable with name customProject could not be found for the given service connection." while adding a task on Azure Pipeline YAML

I’m maintaining and developing “Sample CI” extension. I have installed this extension and getting an error **“Variable with name customProject could not be found for the given service connection.” ** when I try to add a “Test Suite” task in the…