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
2 answers
Azure devops task AddOrUpdateUserAzure@1 failing ubuntu-latest hosted agent
Using AddOrUpdateUserAzure@1 task in Azure pipeline for Microsoft SQL Server database user creation with Microsoft-hosted agent ubuntu-latest fails with the error shown below:
- task: AddOrUpdateUserAzure@1
displayName: DB user creation
inputs:
…

Rajesh174u
- 29
- 1
- 6
0
votes
1 answer
How to specify Cake.Tool version on yaml task in Azure devops pipelines
I have this yaml task to run a build.cake file.
- task: cake-build.cake.cake-build-task.Cake@2
displayName: 'Build Sources'
inputs:
script: devops/build.cake
target: Default
verbosity: Normal
arguments:…

user2503480
- 193
- 3
- 16
0
votes
1 answer
Building variables using 'each'
I want to supply a template with a variable containing a list of strings. I would then like some way for the template to iterate the list of strings, and create a single string in the following format:
"-var-file=$(string1) -var-file=$(string2)…

Nathan Manzi
- 5
- 2
0
votes
1 answer
Azure Devops pipeline can't find a checkouted template
My issue
I have an Azure devops project with a template on another repository than main one's.
I try to load the template but I get this:
/azure-pipelines.yml: File /TemplateRepository/build.yml not found…

Frédéric De Lène Mirouze
- 545
- 5
- 25
0
votes
1 answer
How to make an Azure DevOps pipeline reference to a different repo where its located?
One doubt, I am using Azure DevOps for a number of automations. I would like to keep all the pipelines that I am creating in a different repository where the code is located, but both within the same Azure DevOps project. How can I tell the YAML…

MANZARBEITIA
- 103
- 6
0
votes
1 answer
Azure YAML Scripts - Build and Release
Can we have both build and release in the same YAML script in Azure DevOps ? If yes, Can someone help me with the sample script. For the release part, we are deploying to multiple environments.

AzureDevOpsBeginner
- 73
- 1
- 6
0
votes
3 answers
Azure Pipelines - Equivalent Az DevOps Commands Required
I have successfully used the below commands to update our Azure DevOps project wiki in Powershell ISE.
$etagVar = (az devops wiki page show --org https://dev.azure.com/[MyOrg] --project [MyProjectName] --path '/MyWiki/HelloWorld' --wiki…

hitman126
- 699
- 1
- 12
- 43
0
votes
1 answer
Azure DevOps build pipeline fails for solution with .NET Framework and .NET 5 projects
I have a .NET solution that used to contain just .NET 5 applications. This compiled just fine using a YAML file on Azure DevOps.
However, since adding some .NET Framework 4.8 projects this now fails. I have read some articles that seem to explain…

DrGriff
- 4,394
- 9
- 43
- 92
0
votes
1 answer
Run a powerscript file through a YAML task
Do you have some simple working example on how to run a powershell script file in a task inside YAML file. just like this one? Seems that mine is not able to pick up and execute the script since logs are not being printed.
- task: PowerShell@2
…

rnstvrcstll
- 71
- 1
- 7
0
votes
2 answers
set build to successful when there are only known errors
I have a YAML-pipeline that builds my code and runs some tests. My code-base is pretty huge and full of weird legacy-code that fails my unit-tests. This is why I want to track only new errors within my code, while those legacy-errors should be…

MakePeaceGreatAgain
- 35,491
- 6
- 60
- 111
0
votes
1 answer
Azure Pipeline "fatal: could not read Username" accessing second repo
I have a Pipelines (for yaml) repo and a Source (for product source) repo. The pipeline job does the work of cloning Sources for a build. This works - so long as "Don't sync sources" is checked in the pipeline / YAML / Get Sources (from Pipelines)…

B.McKee
- 328
- 1
- 2
- 15
0
votes
1 answer
How to iterate all the variables from a variables template file in azure pipeline?
test_env_template.yml
variables:
- name: DB_HOSTNAME
value: 10.123.56.222
- name: DB_PORTNUMBER
value: 1521
- name: USERNAME
value: TEST
- name: PASSWORD
value: TEST
- name: SCHEMANAME
value: SCHEMA
- name: ACTIVEMQNAME
value:…

JCDani
- 307
- 7
- 20
0
votes
1 answer
Deploy Multiple Azure WebJobs to a Single Azure AppService in YAML Pipeline
I'm trying to have a deployment pipeline that deploys 3 Azure WebJobs (continous) that are all part of the same solution at once. I can do this in Visual Studio by right click deploy and ensure I'm not clearing existing files.
In Azure Pipelines I…

aherrick
- 19,799
- 33
- 112
- 188
0
votes
2 answers
How to parameterize azure agent.name in azure pipeline?
I am trying to parameterize the agent.name in azure pipeline. The objective is to give the user the option to deploy the code in the desired machine. So I have created a pool with a few machines in it and parameterize the…

JCDani
- 307
- 7
- 20
0
votes
1 answer
ado yaml: Is it possible to select which stage's jobs execute on a per run basis?
I'm porting one of our release pipelines from ADO classic to YAML.
Neither classic nor YAML allow you to select jobs/tasks while creating the run.
At least in classic, once the release is created, you can disable a stage's jobs/tasks for that…

dbconfession
- 1,147
- 2
- 23
- 36