Questions tagged [azure-yaml-pipelines]
146 questions
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
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
How to create a single yaml release pipeline for multiple build artifacts
We have seperate build definitions for each module which generates artifacts. Could someone help me how to create a common yaml release pipeline for all the build definitions
Thanks!

Kart
- 53
- 2
- 8
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 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
Get value of pipeline "name" into PowerShell command in Azure pipeline
My azure-pipeline.yml sets a special magical variable called name that causes the pipeline name to be set.
I want to use this value inside a PowerShell script to put this value into a text file as a setting.
variables:
System.Debug: true
…

Richard Barraclough
- 2,625
- 3
- 36
- 54
0
votes
1 answer
Error while running yaml pipeline in azure devops
I am running a java code with yaml pipeline with self hosted agent,But it shows below error
##[error]No agent found in pool Winagentpool which satisfies the specified demands: maven, Agent.Version -gtVersion 2.163.1
Can someone help me out on…

Userabc
- 11
- 2
0
votes
2 answers
Create job dependency dynamically between jobs
I'm trying to figure how to dynamically create a dependency and run the job based on the condition.
Here is the structure of my pipeline:
main.yaml:
stages:
- stage: build
jobs:
- template: build.yaml
- stage: deployDev
dependsOn: build
…

Ia1
- 500
- 1
- 7
- 15
0
votes
1 answer
Azure YAML Deployments are very slow
I am using azure YAML pipelines to deploy my .Net application. Generally, a deployment uses to complete in 30 min for one server.
But, for the past three days, it's taking almost 90 mins for deployment.
My org network is good and in the Azure status…

AjayKumar
- 59
- 1
- 1
- 5
0
votes
1 answer
Azure App Service Problem in DevOps Pipeline
Hi does anyone have any idea on why im getting this error:
Got service connection details for Azure App…

Jason
- 510
- 5
- 27
0
votes
1 answer
Trigger a build pipeline in Azure DevOps when a specific templates or a build step is present in .yaml file
I am trying to configure a pipeline in ADO yaml builds if a specific conditions are satisfies. below are the details
I have shared templates in separate project from where the CI Pipeline exists. (lets say project 'A')
CI Pipeline is present in a…

divya29
- 1
- 2
0
votes
3 answers
Azure DevOps : YAML continuation trigger starting some pipelines and not others - how to investigate this issue?
I have four YAML "release" pipelines where I use the same YAML syntax to define a continuation trigger. Here is the YAML definition for the trigger.
resources:
pipelines:
- pipeline: Build # Name of the pipeline resource
source:…

whatever
- 2,492
- 6
- 30
- 42
0
votes
1 answer
How to run yaml file from Azure cloud shell
I have created a Windows Server container on an Azure Kubernetes Service (AKS) cluster using the Azure CLI. While trying to deploy my aspnet core app to the AKS cluster, I am stuck on this step of the above link. I have sample.yaml file on my…

nam
- 21,967
- 37
- 158
- 332
0
votes
1 answer
Azure Build Pipeline - How to Grant Access to Storage Accounts?
Goal:
Securely get Azure resources by tag from Azure pipeline.
Details:
I have an azure-pipelines.yaml that builds a static website and saves it to a hard-coded storage account. This is a security vulnerability.
I now need to update the file to…

VSO
- 11,546
- 25
- 99
- 187
0
votes
1 answer
Multi-stage YAML Azure Pipeline conditional stage visibility
We're starting down the path to move our Azure Pipelines from Classic to YAML. Is it possible with multi-stage pipelines to have stages not show up in the stages list, based on conditional logic?
For example, we have multi-stage pipelines that build…

GaTechThomas
- 5,421
- 5
- 43
- 69