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

How to execute SQL in a PowerShell script as part of a Visual Studio Team Services build task?

How to execute SQL against an Azure SQL database as part of a PowerShell script in a VSTS build task in a hosted agent? There are many tasks available for build definitions: we can execute a PowerShell script or deploy SQL using DACPAC or…
4
votes
2 answers

How can I spawn background process when using VSTS Shell script CI task

I'm trying to run for androidTests in CI process. I use VSTS build definition for this. Before testing I must start Android Emulator. I can use Shell script task for starting the emulator, but as I cannot start the process in background, the build…
4
votes
1 answer

VSTS unit tests for .Net Core project: Tests not discovered

I have a .Net core that builds successfully using VSTS. The issue I'm presenting is that Unit Tests aren't being discovered when building the project. I know this is similar to this post but I just wanted to bring up more details in case someone has…
4
votes
1 answer

How to build and release only the modified files using CI/CD pipeline in VSTS?

I am currently in the process of architecting a CI/CD pipeline using VSTS. Whenever a developer commits his changes to the solution in his local visual studio and syncs the changes with remote repository, it triggers the build and release process…
4
votes
1 answer

Modify TFS 2015 BuildNumber during build process

I have some embedded C software stored under TFS and also have a corresponding TFS build definition that successfully checks out the code and builds it using the relevant compilers. So just to be clear, although this is TFS, I'm not building a .NET…
4
votes
1 answer

VSTS: Publish build artifacts to Azure File Storage

Is it possible to publish the output from a build on Visual Studio Team Services to Azure File Storage? I have looked at the Azure File Copy task but can see no way to copy to to anything but Azure Blob Storage or VMs with this. I was thinking I…
ceej
  • 1,863
  • 1
  • 15
  • 24
4
votes
1 answer

Exception when running TFS 2015 custom build task

I have developed a plugin (extension) for TFS 2015. The plugin is actually a custom build task that can be added as a step in the build process. The problem is that when I developed my plugin I used TFS 2015 update 2.1 but my users work with…
Rivi
  • 791
  • 3
  • 15
  • 23
4
votes
2 answers

Building Project in VSTS doesn't build all projects in solution

I'm having a strange issue where when I create a build with "Visual Studio Build" and supply the *.sln file it pretends to build all projects (I see this in the log) but when it comes to publishing artifacts there is only a few of the projects from…
metase
  • 1,169
  • 2
  • 16
  • 29
4
votes
2 answers

Can I define Global Variables across Build Definitions in VSTS?

In VSTS it is possible to create variables per build definition as per the Microsoft documentation https://www.visualstudio.com/en-us/docs/build/define/variables Is it possible to define global variables that I can use across multiple build…
RedJandal
  • 1,203
  • 10
  • 18
4
votes
3 answers

Can I publish symbols to VSTS?

I'm currently publishing some NuGets to my VSTS feed. Is there support for VSTS acting as a Symbol Server as well so I can publish my symbol packages?
3
votes
1 answer

Sonar-scanner failed after execute project builders on Azure DevOps pipeline

Context: I have a pipeline on Azure DevOps running on a self-hosted agent (deployed on kubernetes) and I am using the task 'Run Code Analysis' (right after the task 'Prepare Analysis Configuration'), from the SonarQube extension on Azure…
3
votes
1 answer

Azdo custom task extension definition of string input with a regular expression doesn't work

I have an Azure custom task implemented with Typescript with a task.json containing a string input which is supposed to get a semantic version: { "name": "version", "type": "string", "required": true, "label": "Version", "defaultValue":…
3
votes
1 answer

Flatten build output folders in Azure Pipelines

I have a solution in Visual Studio consisting of multiple report projects, and using Azure Pipelines to deploy the reports to my report server. This pipeline has served me faithfully for years, but my goal is to simplify it a bit. Running MSBuild…
3
votes
1 answer

Azure build pipeline: Is it possible to sign an MSIX within the VSBuild task using a code signing certificate stored in the Key Vault?

I am able to sign an MSIX file within the VSBuild task when using a code signing certificate (*.PFX) that is stored as a secure file from the Build Pipeline's library section using the following setup (truncated for brevity): Note: The key is how we…
3
votes
2 answers

Get feature branch name in Azure Pipelines

trying to build an Android project, gradle checkout the specific branch that was triggered by Azure DevOps and build the package. After task finish Azure Pipelines checkout to HEAD. As a result, in the next task when i get branch name/tag, doesn't…