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
0 answers
Azure DevOps Pipeline yaml with extends template cannot find template file
I have 2 yaml files both sitting in a pipelines folder
TFpipeline-dv.yml
trigger:
- none
pr: none
variables:
- template: variables/pipelinevars-dv.yml
extends:
template: TFPipeline-shared.yml
The template file TFPipeline-shared.yml is as…

JakeUT
- 359
- 1
- 4
- 16
0
votes
1 answer
YAML Pipeline doesn't compile Parameter: "Unexpected value" in Azure DevOps Server 2019
My first post on here, forgive me if I am at all unclear. I am a junior developer, and completely new to YAML - it's very very likely I'm missing something that someone with more experience knows about!
I am attempting to build a YAML pipeline with…

Antares
- 3
- 2
0
votes
1 answer
Incorrect Identification of Target Branch - SystemPullRequestTargetBranch. What is the workaround?
~
System variable System.PullRequest.TargetBranch cannot be used in templates. What is the workaround for below.

Nikhil
- 1
- 1
0
votes
1 answer
Azure DevOps YAML - Problem with multiple pipelines per version/branch conception
Simplifying my current scenario is that I have repo with two branches "develop" and "release". There is azure-pipeline.yml file and two pipelines attached to it (one per branch). In develop I have:
trigger:
branches:
include:
- develop
and…

BLuM
- 657
- 5
- 28
0
votes
1 answer
Is there a way to specify the PR branch for YAML pipeline in Azure DevOps
Is there a way to just specify that a pipeline runs on the PR branch? I am fairly new to Azure Devops Pipeline YAML.
Currently the trigger is:
trigger:
- master

Sole
- 3,100
- 14
- 58
- 112
0
votes
1 answer
Azure DevOps - Drop folder empty in React build for Azure YAML pipeline
I am trying to implement the YAML pipeline into my project; however, the current code does not give not output into the drop folder. I don't have any subfolders. The project is at the root. Any ideas? I have seen somewhere that in the scripts part I…

Sole
- 3,100
- 14
- 58
- 112
0
votes
0 answers
Specflow living docs generator error: Multiple files are matching the pattern
I have a solution with multiple feature files in one project called Axis.Tests
I am trying to integrate these tests into Azure pipelines.
Current state: I am able to build the project and run tests without any problem, but generating test results…

SamJ26
- 154
- 2
- 10
0
votes
1 answer
Azure DevOps: Run step after pipeline failed
Sometimes our builds fail. If that happens, then the workspace is not cleaned. New builds just create new workspaces, which eats up all HDD space.
Is there a way to clean the workspace after the build has failed?
Right now I have a clean-up step…

Anton Merzliakov
- 65
- 9
0
votes
0 answers
Azure build pipelines - need to know the complete path where the build logs are stored on the Microsoft Hosted Agent
I have a build pipeline and I need to download the logs generated from the build pipeline and save to some location in my repo. I need to know where these logs are stored on a Microsoft hosted agent from where I can copy to a path in my repos. Also,…

user961
- 453
- 6
- 20
0
votes
1 answer
How to download artifacts from the last job execution when retrying a job in the same stage using Yaml pipelines?
I have a single stage with 3 jobs:
Job A -> Always publishes artifact
Job B -> Always publishes artifact
Job C -> Depends on and uses the artifacts from Job A and Job B
Jobs A and B are retryable if they fail.
Ideally, jobs A and B would overwrite…

kmxp
- 25
- 6
0
votes
1 answer
How to specify two paths for *.json files for running ARM-TTK Tests in an Azure DevOps pipeline
I am running Unit Tests using ARM-TTK in Azure Devops and i have some selective unit tests that i would like to run from a desired location.
The two location where i have my .JSON files are : ARM_Templates/IaaS and ARM_Templates/PaaS.
I have other…

Pallab
- 1,915
- 2
- 19
- 46
0
votes
1 answer
How to skip the template if the variable is not equal expected value in azure pipeline yaml?
I have a .yaml file
variables:
- name: command1
value: none
- scripts: |
echo '##vso[task.setvariable variable=command1]new_value'
- ${{ if ne(variables['command1'], 'none') }}:
- template: templates/run.yml@temp1 # Template reference
…

JCDani
- 307
- 7
- 20
0
votes
1 answer
Can't use a YAML parameter type step
My issue
I am testing this YAML script in Azure DevOps:
parameters:
- name: myStep
type: step
default:
script: echo my step
- name: mySteplist
type: stepList
default:
- script: echo step one
- script: echo step…

Frédéric De Lène Mirouze
- 545
- 5
- 25
0
votes
0 answers
Issue with passing arguments to Powershell Inline script in Yaml Pipeline
I am very confused with how to pass arguments to inline script (Powershell task or Azure Cli task) in yaml pipeline.
Can somebody explain in simple language with a simple example? I have seen so many articles about passing arguments to Powershell…

Anil
- 1
- 1
- 6
0
votes
2 answers
Azure Devops ad hoc schedule YAML releases
In my YAML script I have several environments I deploy to with manual triggers. I tend to deploy to my production environment at various times. In the classic release I was able to ad hoc schedule the release but in YAML I have not figured it out.…

iEnjoyFreeBacon
- 57
- 5