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: ..
Our build agent is running Podman 3.4.2 and there is a global alias in place for each terminal session that simply replaces docker with podman, so the command docker –version yields podman version 3.4.2 as a result. The goal is to use podman for the [email protected] task in a Azure DevOps pipeline: steps: – task: ..
I have to pull a bunch of docker images, install some root CA certs on them and push them to a private repo. The logic I came up with is: Create a template docker file (Dockerfile.Template) On a pipeline, declare all the base images to be pulled Run one by one on the dockerfile replacing ..
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 ..
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: ..
I have an Azure DevOps YAML pipeline where I checkout multiple repos I execute jobs inside containers but only the main repo is available inside the container. How can I make sure all repos are mounted? jobs: – job: Job1 container: mycontainer:latest steps: – checkout: self – checkout: repo2 path: repo2 the main repo is ..
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 ..
###1 What do I want to accomplish? From any of my existing 03 VSTS_Azure_Agent containers I want to pass/execute cypress run towards 01 cypress container ###2 Environment? Linux/Ubuntu Server 18.04.06 LTS ###3 What have I tried So far, I haven’t figured it out, this will be a production-grade arragement because, we are moving away from ..
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 ..
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 ..