Category : azure-pipelines

I’m stuck adding Code coverage results to my Azure pipeline for a .NET 6 Web API, which is wrapped into a docker container. I use these: Nuget added: "coverlet.msbuild" Dockerfile: RUN dotnet test "WebAPIProject.DataAccessLayer.Tests.csproj" –logger "trx;LogFileName=WebAPIProject.DataAccessLayer.Tests.trx" /p:CollectCoverage=true /p:CoverletOutputFormat=json%2cCobertura /p:CoverletOutput=/src/WebAPIProject.DataAccessLayer.Tests/TestResults/Coverage/ My Pipeline’s respective rows: – task: [email protected] displayName: Build image for testing inputs: containerRegistry: ‘$(dockerRegistryServiceConnection)’ repository: ..

Read more

I have a dockerfile that builds locally but fails on azure devops. I get this error while building the image: COPY failed: file not found in build context or excluded by .dockerignore: stat linux-arm: file does not exist ##[error]COPY failed: file not found in build context or excluded by .dockerignore: stat linux-arm: file does not ..

Read more

Here is my scenario/usecase: Pull a docker image from docker hub and push it to Azure Container Registry. Note, I do not have to build the docker image I am following this documentation but some things are not clear https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/containers/push-image?view=azure-devops#azure-container-registry Here is the azure pipeline yaml snippet – task: [email protected] displayName: Push image inputs: containerRegistry: ..

Read more

How to architect Azure Pipelines for CI/CD for a MonoRepo consisting of separate micro-services (.NET Core back-end APIs) each with their own Dockerfile, that all use a common library? The current folder structure is: Common /src SvcA /src Dockerfile SvcB /src Dockerfile I would like to build a Docker container for each project (and push ..

Read more

I’m trying to build a VisualStudio Project (C#, .NET Core, WPF) in AzureDevops self hosted in docker using Linux image. I tried this tutorial. But when I’m about to Build. I get the following error message: ##[error]No agent found in pool TEST_POOL which satisfies the following demand: visualstudio. All demands: msbuild, visualstudio, vstest, Agent.Version -gtVersion ..

Read more

We have a problem with Azure pipeline. Inside pipeline we are running integration tests, those tests interacts with Docker Rest API to run specific containers (we are using Docker.DotNet for that). Everything works on on-premise hosted build agent, but doesn’t on Microsoft-hosted (Ubuntu based). All calls to Docker REST API ends with timeout exception. Does ..

Read more