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

.NET Core Publish Task Slow after upgrading blazor project to .Net 7

Azure Pipeline '.Net Core Publish' task too slow after upgrading the project to Dot Net 7. It just took less than 8 min before, using Dot Net6. After the upgrade to dot net 7 it takes more than 50 min and most of the times it fails if it doesnt…
5
votes
0 answers

Azure App Service Deploy pipeline task error: Resource doesn't exist/UnhandledPromiseRejectionWarning when resource exists

Getting the following error while running an Azure DevOps pipeline that uses the Azure App Service Deploy task when the resource clearly exists. This is happening in an existing pipeline that historically works. ##[error]Error: Resource 'blah'…
5
votes
2 answers

Azure pipeline - specify branch name in multiple repository

As a continuation to Azure DevOps - Handling single release for separate code repositories for UI and Dotnet API layer I am trying to proceed with checking out multiple repos in my yaml by defining it under repositories as shows below. I am unable…
5
votes
4 answers

Azure Pipeline error: template file not found in repository

I am trying to use 2 repositories on the same pipeline. One repository contains source code and the other has templates. The azure-pipeline.yml of repository source code looks like this: pool: alm-aws-pool resources: repositories: -…
5
votes
2 answers

Azure Pipelines Set variable in script with string value that contains newline

I'm trying to build aspnetcore artifact for a solution with multiple web projects inside. Default netcore publish task has checkbox "Publish Web Projects" that finds all projects containing web.config or wwwroot folders, but my WebApi projects…
5
votes
2 answers

How to add bindings in devops pipeline with Yaml

How I can add Bindings in a "IIS web app manage" task using yaml? I tried putting the bindings like classic pipeline and doesnt work
5
votes
1 answer

How to reorder build queue waitlist for TFS Agent?

Is there any way to programatically reorder the build queue priority on TFS Agent For example, at the moment I've 4 builds in the queue on Agent-1 build #1 build #2 build #3 build #4 Currently build #1 is running. Once it's finished, I want TFS…
5
votes
2 answers

Is it possible to conditionally set the artifact name in my Azure DevOps build pipeline "publish artifact" task?

I was wondering if it is possible to conditionally set the name of my build artifact in my Azure DevOps build pipeline "publish artifact" task? I want to produce different artifacts based on the input to my build pipeline. Say, based on the input…
GregH
  • 12,278
  • 23
  • 73
  • 109
5
votes
0 answers

How to build Docker image then use built image to run tests

I want to use Azure Pipelines to build a Docker image, then run tests inside the built image with a container job. The image should use the build id as the tag (or a combination of the build id, commit hash and branch name). If I used a static tag…
5
votes
1 answer

Set variable in bash script and access in expression in Azure Pipelines

I am using an azure-pipelines.yml script to source control my build pipeline. In a task I have defined a bash script to set some variables for certificates paths depending on whether we are building for production or anything else: steps: - bash:…
Sam
  • 6,616
  • 8
  • 35
  • 64
5
votes
2 answers

Running JaCoCo in Azure DevOps for Android : Could not find method jacocoTestReport()

We have implemented Jacoco in our Android Kotlin project which we can call locally via ./gradlew clean build jacocoTestReport However, when we deploy to VSTS/Azure DevOps it errors with: 2019-02-04T09:37:35.5760285Z BUILD SUCCESSFUL in…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
5
votes
2 answers

Azure devops pipeline get work items between builds

I'm looking for a pre-made option to take 2 builds, and compare the work items or PRs completed between them. i know there are REST API options in order to find out this information (…
5
votes
2 answers

app.config transformations in Azure Devops for different environments

I've got a .Net Framework 4.6.1 project, which creates a Windows Service. We want to have this built and deployed by an Azure Devops pipeline. We've successfully created pipelines for all of our .Net Core web services (using the…
5
votes
2 answers

Azure DevOps creating variables for actions in inline bash scripts

When creating an inline bash command like this in Azure DevOps: checksum="$(cksum file.txt)" I'll wind up seeing cksum file.txt as a required parameter. For whatever reason, this behavior isn't consistent so sometimes I've setup build pipelines…
5
votes
1 answer

Setting a Task Group variable in a script does not change its value

How do I ensure a Task Group variable is updated and accessible in non-script tasks? In a Task Group, after setting a CONTAINER_PORT variable in a script, it's available in later script tasks, but when accessing it via $(CONTAINER_PORT), then the…
Levi Fuller
  • 13,631
  • 4
  • 38
  • 44