Questions tagged [azure-yaml-pipelines]
146 questions
1
vote
1 answer
Have multiple pipeline triggers in Azure
I have a pipeline, let's call it c. I would like c to be triggered if either pipeline a or pipeline b finishes. Please see bellow my attempt. Anyone knows why it does not work?
resources:
pipelines:
- pipeline: a
source: ci-a
…

Gabriel
- 741
- 2
- 9
- 18
1
vote
1 answer
Using templates to pass paramters in an Azure Devops 2020 yaml pipeline
I would like to implement a yaml pipeline such that I can set certain solution parameters once and then use it in multiple pipelines. Currently I have:
azure-pipelines.yml
trigger:
- master
name:…

silvermeru
- 13
- 2
1
vote
2 answers
dist folder on basic vue.js
I created a basic vue.js with Visual studio 2019. I put it on a git in my private azure server. I have a windows build agent.
yml for building, no error.
trigger:
- master
pool: 'Default'
- script: |
npm install
npm run build
…

forX
- 2,063
- 2
- 26
- 47
1
vote
2 answers
Difficulty escaping quote character in powershell script (Azure Devops Yaml)
My azure piplines yaml script uses powershell to replace a placeholder string in a .CS file with the current date string. This is the line with the value to be replaced (20200101000000)
[assembly:…

Joe
- 5,394
- 3
- 23
- 54
1
vote
1 answer
How to use multiple build definitions in single yaml pipeline
We are planning to implement yaml pipelines in our environment. I can manage adding jobs and tasks by doing some research. But dont know the better way to design according to my environment.
We are now maintaining classic pipelines for 8 to 10…

Kart
- 53
- 2
- 8
1
vote
2 answers
Referencing Azure Key Vault secrets from CI/CD YAML
We have a multi-stage YAML pipeline that does CI/CD to an existing set of Azure Resources
The stages are
Build
Deploy to Development and Run Tests
If Previous succeeded - Deploy to Production and Run Tests
We use the AzureRmWebAppDeployment task…

Pat Long - Munkii Yebee
- 3,592
- 2
- 34
- 68
1
vote
1 answer
dotnet restore file matching
My folder structure for a code base looks like this
src
Test
Users.Services
Users.Services
Users.Domain
Users.Infra
Now, if want to restore for only the Users projects and not the Test projects, I cannot get the file matching to work.
I have…
user10285265
1
vote
1 answer
Change minutes dynamically in CronTab on Azure DevOps with Pipeline Variable
I have a yaml pipeline where I would like to set the CRON minutes with a Variable Pipeline to avoid making commits and pull requests.
When I try to do something like this I get syntax errors:
schedules:
- cron: "*/$(PipelineVariable) * * * *"
…

Knicker
- 43
- 7
1
vote
2 answers
vsts pipeline with multiple repositories
I'm trying to create a pipeline with multiple repositories using yaml syntax.
# Deploy to Azure Kubernetes Service
# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service
#…

CloudAnywhere
- 669
- 1
- 11
- 27
1
vote
2 answers
Azure DevOps YAML how to being notified about new task version
In the graphical build editor there was a hint if there is a new version of a build task:
Is there any equivalent in the YAML editor?
Or is there any other option to find out, if there is a new task version available (besides searching the…

boindiil
- 5,805
- 1
- 28
- 31
1
vote
1 answer
conditional build based on branch for multi stage pipeline using different templates under stages
How to trigger by branch to use specific template under "stages"?
trigger:
branches
include:
- ci
- prod
stages:
template: ci.yml
condition: and(eq(['build.sourceBranch'], 'ci'))
template: prod.yml
condition:…

Ia1
- 500
- 1
- 7
- 15
1
vote
1 answer
Azure pipelines Universal Package Task fails with error "The package name provided is invalid"
Snippet from Yaml file of my pipeline where I archive the build directory, publish it to artifacts and then try to make the artifact available as a universal package in Azure Artifacts.
- task: ArchiveFiles@2
inputs:
rootFolderOrFile:…

h1990
- 125
- 3
- 11
1
vote
1 answer
Unable to define runtime parameters with secret in azure YAML
I am trying to create a secret runtime parameter as described in GitHub. But getting the below error.
Encountered error(s) while parsing pipeline YAML:
/azure-pipelines.yml (Line: 12, Col: 3): Unexpected value 'secret'
Code:
parameters:
- name: app
…

Dileep Palli
- 45
- 6
1
vote
2 answers
Is it possible to Update the Build Definition name using YAML in Azure Pipelines
I am trying to update Build definition name based on the YAML runtime parameters. I am able to achieve this like below
name: ${{ parameters.source }} to ${{ parameters.target }} $(Date:yyyyMMdd).$(Rev:r)
But I want to update the build name by…

Dileep Palli
- 45
- 6
0
votes
0 answers
How to call a yml pipline task based on dynamic data
I have a repo containing an nx mono repo that produces x number of angular apps. We rely on the affected command to only build apps that have changed which works fine.
What i need to do though is be able to call a set of yml tasks (zip files,…

CeejeeB
- 3,034
- 4
- 25
- 32