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

Confused by the use of $(Build.ArtifactStagingDirectory) in separate stage from published Artifact

Problem: $(Build.ArtifactStagingDirectory) is empty, despite being able to view the published Artifacts in the Azure DevOps Pipeline UI, which causes the pipeline to fail. What I'm trying to do: Build microservice (e.g., /api). Run unit tests. If…
3
votes
1 answer

Can DotNetCoreCLI build solution?

I have tried in my azure build pipeline to set a DotNetCoreCLI build task to build a solution but I just get an error: MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or…
3
votes
2 answers

Azure pipelines ArchiveFiles Archive creation failed

I'm trying to zip a Rust debug build folder using the ArchiveFiles task in my Azure pipeline. This fails with the error message: ##[error]Error: Archive creation failed for archive file: D:\a\1\a\MyProject-win-33.zip This is the yaml for…
mottosson
  • 3,283
  • 4
  • 35
  • 73
3
votes
2 answers

Debugging a Azure DevOps Task Extension (TypeScript)

I develop all our task extensions in PowerShell, now I start to translate my first extension into TypeScript. The extension is a small task which should run in build or release pipelines. The task should get deployed to a Azure DevOps Server 2020.1…
Mar Tin
  • 2,132
  • 1
  • 26
  • 46
3
votes
1 answer

Where can I find the documentation for the different msbuildargs options?

I am in the process of creating a build pipeline. I have a vsBuild@1 step and I am trying to see what options I could use in the msBuildArgs. I have looked at multiple links such as…
Hussam Ahmed
  • 413
  • 1
  • 5
  • 17
3
votes
2 answers

How do I use a Nuget package in the Artifacts page in my Docker Build step?

In my Azure Devops project, under the tab "Artifacts", I have a package MyPackage. In my build pipeline, I have this step: - stage: Build displayName: "Build" jobs: - job: steps: - task: Docker@2 inputs: …
yesman
  • 7,165
  • 15
  • 52
  • 117
3
votes
1 answer

Azure build pipeline path filter to only include particular file extension

I'm working on creating build pipeline in Azure DevOps. I want to trigger it against master branch but only when commit has changes under src/Project/tds/Serialization.Master/ Project - this project contains only .item files If the commit includes…
3
votes
3 answers

Code Format Task for Azure DevOps Pipeline

TL;DR - Is there an Azure DevOps pipeline task for formatting code as part of the build process? I have not been able to find one and would really find it useful. My team uses the free CodeMaid Visual Studio extension to "beautify" (format) C#…
3
votes
1 answer

How can I set the preferred powershell version in an Azure Devops Pipeline Task?

I have a Azure Devops Pipeline $PIPELINE with a task group $TASKGROUP, and one of the actions in that task group is a powershell task $TASK ( a powershell task, not a AzureCloudPowerShellDeployment task or AzurePowershell task, which are different…
3
votes
3 answers

Azure DevOps Pipeline build triggering unexpectedly

Updated 26-Feb-2020 In our Project, I have a pipeline "MyPipeline" which restores the NuGet packages, builds the solutions and runs the tests. On the master branch, I have a policy which does things like add code reviewers, and it has a "build…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
3
votes
2 answers

Build .Net Framework on Azure Pipeline and Linux

I have two questions: Appreciate any hints or answers. Build .Net framework app in Linux: I want to build .Net Framework in Linux, is there anyway doing it? Build using Cloud and download the .exe to the Linux: Is there anyway to build a .net…
3
votes
1 answer

"PowerShell on Target Machines" task fails with an error in TFS 2017\Azure Dev Ops

I am trying to run a PowerShell script present on one of the azure server using the "PowerShell on Target Machines" Task in my TFS build definition, but the task fails with the below error. System.Management.Automation.RuntimeException: The running…
3
votes
2 answers

Can you copy files from one VSTS build agent to another?

Is it possible to copy files from one build agent to another and kick it off as a part of the pipeline task? One build agent is Linux but I need to continue my work on Windows agent.
3
votes
1 answer

Is it possible to set source dynamically in Azure Repos Git?

I'm looking for a solution to dynamically select a branch to build in the Azure pipeline. I have Azure Repos Git where I select project, repository and default branch. I would like to be able to select branch based on a variable. What I'm trying now…
3
votes
2 answers

How to limit the number of multiple / parallel builds in Azure Pipelines?

I don't know how to limit the number of concurrently running builds in Azure Pipelines. For instance when creating more than one PR on GitHub at the same time, I want that only one build (for one PR) at the same time is running. I checked the YAML…
Andreas Grimm
  • 195
  • 1
  • 7