Questions tagged [azure-yaml-pipelines]
146 questions
1
vote
1 answer
In Azure yaml, how to use local variables, conditional variables and template variables together?
Consider the following scenario, on where a job (or stage), needs to use some local, conditional and template variables:
# (1) Local for the yaml file
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
# (2) Conditional,…

zameb
- 705
- 11
- 26
1
vote
1 answer
Forking two stages back into one azure pipeline
I'm currently working on a azure devops yaml pipeline.
The structure of the pipeline looks something like this:
As you can see I have multiple "forks" and in one case I want to bring the "forked ways" back into one. (before the download_from_source…

Lumberjack
- 419
- 6
- 12
1
vote
1 answer
For Azure DevOps "pipelines" resource, what is the intended use and set-up of "resources: pipelines: pipeline: tags:"?
We are trying to figure out what is the intended use/behavior/set-up of tags defined in the Azure DepOs docs Define a pipelines resource.
We have a build pipeline that has the following task at the very end, adding the Deployable-Artifact tag to…

cResults
- 733
- 1
- 5
- 17
1
vote
0 answers
Azure DevOps Failed to update App Service configuration details
I am trying to deploy a WebApp in Azure DevOps and I am getting this error:
[warning]Failed to update App Service configuration details. Error: Error: Failed to update App service 'webapp' configuration. Error: BadRequest - Required parameter…

Jason
- 510
- 5
- 27
1
vote
1 answer
How can I conditionally use a container on Azure Pipelines?
I have an AzP job with a matrix where one needs to run in a Container (old compiler test)
How can I conditionally run the jop inside the container?
I tried the below but that doesn't seem to work, i.e. the container is never used although I'm pretty…

Flamefire
- 5,313
- 3
- 35
- 70
1
vote
0 answers
Devops yaml string array not recognized when passed as part of complex object type parameter and coalesced with another object
You can loop through and print the strings in an array passed as a parameter to an Azure Devops Yaml Pipeline Template. You can also loop through a string array passed as part of a complex object, or coalesced with another array - but not…

Rachel
- 686
- 1
- 6
- 18
1
vote
1 answer
Azure DevOps Pipeline - Use previously defined variables in variable definition
I don't know if there's a way to use previously defined variables in variable definition. Basically I want to do something like this:
variables:
- name: basePath
value: \\somepath
- name: servicePath
value: $(basePath)\servicePath
- name:…

minhtuanta
- 89
- 5
1
vote
1 answer
How to set Queue time variable is equals to expected value to execute a template in azure pipeline
When I run the pipeline the UI shows specific field to collect the input and run the template based on the condition. I am trying to get the parameter and convert it to variable and use it in my condition.
paramerers:
- name: environment
type:…

Nish
- 69
- 6
1
vote
2 answers
AzureDevops: Can we pass dynamic value as service connection in yaml
I have a yaml. where I need to pass serviceconnections to a script/template based on an another task which retrieve all required subscriptions.
Question is : Can I pass a dynamic value to a service connection? It is giving me compile time error.
My…

learner
- 223
- 3
- 19
1
vote
3 answers
Use an Expression as Part of the Cache Key in an Azure yml Pipeline
I want to create a cache key from an expression in cache step located in a steps template. Since caches are imutable, I want to start with a clean cache every week or every months. My template file looks like this:
# steps-tpl.yml
steps:
- task:…

Richard W
- 631
- 4
- 15
1
vote
1 answer
AzDO ManualValidation step failing in YAML pipeline with no explanation of why
I'm converting to a full YAML AzDO pipeline and need to wait for manual validation for certain stages of my pipeline. Added the new ManualValidation task into a serverless job, however it fails immediately with no details about why. I did add a…

Jamie M
- 21
- 6
1
vote
0 answers
How do I pull by tag from multiple git repos in Azure Pipelines YAML?
I have a YAML pipeline that does a nightly build pulling from multiple Azure Git repos with the YAML checkout task. Now we are ready to release a version of the product built by this pipeline. The version will be "2.1". My idea was to create tags…

Joe
- 5,394
- 3
- 23
- 54
1
vote
2 answers
Can't find "Automatically link new work in this build" option in Azure-YAML-Build-Pipeline
we recently converted our Azure Build Pipelines to YAML definition. Now I can't find the option Automatically link new work in this build anymore, which was available in the classic pipelines. It is not displayed in the pipeline settings menu, as I…

dyedwiper
- 151
- 12
1
vote
2 answers
Get-AzApplicationInsights is not recognized
I constructed a new Azure Pipeline and added this 'Azure CLI' task to try and run some Azure CLI Powershell scripting. Primarily, I want to do some checks on an existing AppInsights resources.
(Azure…

Don Draper
- 137
- 1
- 3
- 12
1
vote
1 answer
Need to use Variable groups as Input parameters in Azure pipeline
I am very new to Azure pipeline and I am stuck in an issue from pas one week.
I have a Selenium c# test case which I have to execute on pipeline.
I must use the Variable groups as the input parameters for my test cases.
So, I have created…

Sudhindra SK
- 13
- 5