Azure Pipelines automatically builds and tests code projects to make them available to others. It works with just about any language or project type. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to test and build your code and ship it to any target. YAML (or YML) is the language used to construct pipeline objects.
Questions tagged [azure-pipelines-yaml]
1379 questions
0
votes
1 answer
Azure Pipelines for Gradle project fails with Publishing build artifacts failed with an error: Not found PathtoPublish
I'm trying to publish the resulting jar from a Gradle build. The problem I've come across is that the PublishBuildArtifacts fails with:
##[error]Publishing build artifacts failed with an error: Not found PathtoPublish:…

codependent
- 23,193
- 31
- 166
- 308
0
votes
1 answer
Is there a way to automate restart of Azure App Service Environment(ASE) so that it can be included in the pipeline?
As part of Failover/negative testing, want to restart Azure App Service Environment in pipeline. Currently it's being done manually using restart button of ASE resource in Azure Portal
As a part of research came across App Service Environment…

joe_GJ
- 1
- 1
0
votes
0 answers
Inconsistent output in YAML pipeline vs default Azure Pipeline
I'm trying to run a "dotnet tool install" to install cli tool on the build agent in my pipeline and the behavior is inconsistent. Sometimes it executes the command successfully but it also fails sometimes with below error and I cannot figure out why…

Ia1
- 500
- 1
- 7
- 15
0
votes
1 answer
Setup scripts in Azure DevOps MS hosted container pipeline
I need to compile a CMake based C++ project using GCC. It depends on MKL, and for successful Cmake configuration, compilation and test execution, I need run the following comands beforehand
source /opt/intel/bin/compilervars.sh -arch…

iv1
- 45
- 5
0
votes
1 answer
Azure YAML - Dynamically set stage/job execution order with variable
I'm trying to create a yaml pipeline with three stages that can be executed in different orders depending on the Pull Request source branch. For example:
If var = default then
Stage A
Stage B
Stage C
If var != default then
Stage A
Stage C
Stage…

dboliviaa
- 23
- 1
- 1
- 5
0
votes
1 answer
Azure Pipeline mounting fails
I am using Azure Pipeline to automated build my Yocto Project in a docker container.
Here is snapshot of the code syntax (Azure Pipeline .yml file)
trigger:
- main
resources:
containers:
- container: abc-build
image:…

Anson Tan
- 1,256
- 2
- 13
- 34
0
votes
1 answer
How to run the azure devops build completely even with failing react test cases
How to run the azure devops build completely even if there are some failing test cases. With the below mentioned scripts, the build is exiting with error code 1.
azure build pipleline tasks:
- script: "yarn --cwd frontend/ coverage"
…

Hema S
- 159
- 2
- 3
- 10
0
votes
1 answer
Can Use other repositories yml file to other pipeline
Repo 1 and Branch Name: Repo1Branch
trigger:
- none
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo Hello, world!
I want to call Repo 1 form Repo 2 pipeline
Repo 2 and Branch Name: Repo2Branch
trigger:
- none
pool:
vmImage:…
0
votes
2 answers
How to convert classic pipeline to yml pipeline using azure DevOps api
Can I use this api and convert classic pipeline to yml pipeline -
PUT https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}?api-version=6.0
I tried to override json body by putting this yml content in postman body and…

megha
- 621
- 2
- 11
- 36
0
votes
1 answer
How to simplify Azure pipeline and avoid to much repeating
I have this pipeline (non relevant parts removed):
stages:
- stage: 'PreSteps'
displayName: 'Preparation Steps'
jobs:
- job: 'Check_changes'
steps:
- task: Bash@3
name: 'bash_script1'
inputs:
…

goosseno
- 145
- 2
- 12
0
votes
0 answers
Azure DevOps Pipeline (with yaml) - script return code is ignored
Pipeline yaml file is very simple: 1)make 2)run exe file.
The pipeline returns PASS even if exe file returns non-zero rc.
The rc is not even displayed in the job log.
How I check the execution return code and fail the pipeline ?
trigger:
-…

pavel levitsky
- 11
- 2
0
votes
1 answer
Azure DevOps copy additional files to published artifacts - Not reflecting
I have a publish build artifact step and then a copy step to place my UI compiled contents into the generated folder. Although the copy step succeeds and I can see in the logs that it copied my required content to the specified folder inside drop,…

KeenUser
- 5,305
- 14
- 41
- 62
0
votes
1 answer
Prevent Zipping in VSBuild task in Azure DevOps
I would like to copy Angular UI dist folder content into published content, specifically wwwroot when using VSbuild task as shown below
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true…

KeenUser
- 5,305
- 14
- 41
- 62
0
votes
1 answer
Azure Pipelines: can a template be consumed from a pipeline resource rather than a repository resource?
The Azure Pipeline documentation on templates and usage has a section about consuming templates from other repositories using a 'repository' resource. I would like to do something similar, but use a pipeline resource (published artifact) instead of…

Bjornicus
- 1,087
- 1
- 8
- 14
0
votes
1 answer
Azure pipelines approval is required before the condition is evaluated
I have a CI/CD pipeline for a solution with several projects. I check the changes and only build the projects which have been changed, as opposed of building all of them.
I accomplish this using a condition at the build stage of each project. This…

goosseno
- 145
- 2
- 12