Questions tagged [azure-devops-pipelines]

269 questions
4
votes
2 answers

No test result files matching **/test-*.xml were found - Azure DevOps

I am trying to publish test results in azure but i am unable to do it. Its my second day with azure so i may be missing something. My pipeline code is - task: PublishTestResults@2 inputs: testResultsFormat: 'JUnit' testResultsFiles:…
user9817924
4
votes
2 answers

##[error]No agent found in pool Agent which satisfies the specified demands: maven, Agent.Version -gtVersion 2.163.1

I am trying to have build and release pipeline on Azure DevOps services for the same I am using self hosted Linux agent runnig on linuxVM hosted in Azure. Earlier the same pipeline was running on Microsoft hosted Agent there was no error. Right now…
4
votes
3 answers

Multi branch Pipeline in Azure Devops

I am trying to build a YAML release pipeline in Azure DevOps for that I have created multiple branches to keep environment-specific files I created 4 pipelines for release as well: Problem: Whenever I am making any changes in any branch, all the…
4
votes
1 answer

Azure Devops YML Conditional Stage Template

Visual Studio 2019 16.8.5 I want to use template for stages. Some stages, I'd like to be based on conditions. However, when I try this in the YML file, it generates errors. Here are two attempts in the azure-pipelines.yml file: stages: - template:…
Mark
  • 480
  • 1
  • 5
  • 18
4
votes
1 answer

Is there is a way to get Pull Request ID in Azure DevOps after clicking on complete button in Pull Request

I'm executing a pipeline flow after creating a PR and I need to get Pull Request ID after I click the complete button. I'm using $(System.PullRequest.PullRequestId) to fetch the value, but it is always an empty value and gives the error output…
4
votes
1 answer

Azure DevOps Self hosted agent error connectivity issues

We are using Azure DevOps Self hosted agents to build and release our application. Often we are seeing below error and recovering automatically. Does anyone know what is this error ,how to tackle this and where to exactly check logs about the error…
3
votes
0 answers

Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15) Azure DevOps Build pipeline run not executed and getting this error

- Execution failed for task ':app:lint'. > Could not resolve all files for configuration ':app:lintClassPath'. > Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'. …
3
votes
1 answer

Azure DevOps pipeline logs for a specific task

In Azure DevOps, I have a pipeline, where I need the logs of a specific task. How do I find out which log ID i need to fetch it? eg. on UI this is the endpoint:…
3
votes
2 answers

How to fetch Certificate from Azure Key vault to be used in docker image

I am using a ssl certificate while building the docker image to communicate with other different services with in the Kubernetes. right now I have the ssl certificate in my repo and will be published as part of the artifact. we are planning to move…
3
votes
0 answers

AzurePipelines: different values for `pipeline.startTime` in the same run of a pipeline

I have a pipeline defined by the following two files. My problem is that the output of the ShowDate step is not the same in these two jobs. I would expect this because both are filled by pipeline.startTime. It seems that pipeline.startTime is…
Rynardald
  • 329
  • 2
  • 10
3
votes
0 answers

Azure DevOps REST API - Run a pipeline passing branch name

I have an API that I want to run a pipeline in a specific branch. In DevOps, you have the option to select a branch/commit that you want to run the pipeline on: How can I use this via the REST API - Run a pipeline request? REST API - Run…
3
votes
1 answer

Azure DevOps yaml pipeline expression not evaluating

I'm trying to assign the PublishTestResults@2 task's failTaskOnFailedTests argument in an azure-pipelines.yml file to be the result of an expression. The first time the tests are run, if there are any failed tests I want to fail the job. On…
BigPigVT
  • 1,381
  • 3
  • 12
  • 20
3
votes
1 answer

Git repository permissions issue in Azure DevOps Pipeline

In an Azure Pipelines Task, I am attempting to create and push a new branch. I am able to clone the repo using the $(System.AccessToken) variable, bit when I try to push the new branch I get the following error: remote: TF401027: You need the Git…
Mike Cole
  • 14,474
  • 28
  • 114
  • 194
3
votes
2 answers

Is it possible to set a condition based on System.PullRequest.TargetBranch for a stage in a pipeline template?

I have a solution where a git branch is directly related to an environment (this has to be this way, so please do not discuss whether this is good or bad, I know it is not best practice). We have the option to run a verification deployment…
3
votes
1 answer

Azure-Devops Pipeline - wait for E2E tests pipeline to pass before deploy to next environment

We have Pipelines which usually have the following stages: Build (+ UnitTests) Deploy to Dev Deploy to Test Deploy to Production Additionally - on Test and Prod environments - the approvals are defined - so if PR is merged, it's being deployed to…
JeloneK
  • 249
  • 2
  • 11
1
2
3
17 18