Questions tagged [azure-yaml-pipelines]

146 questions
45
votes
5 answers

Azure DevOps : how to disable CI trigger on a YAML template pipeline?

In template pipelines you can't place any trigger statement such as trigger: none as specified in Microsoft's docs to disable ci trigger, so I wonder how do you prevent these pipelines from being executed every time you update them or any other yaml…
21
votes
1 answer

How to choose between step, job and stages in azure devop's yaml?

I converted most of my classic build pipelines to yaml now. The yaml convert tool devop basically treated my classic build pipeline tasks as individual yaml tasks. So now I have one job with around 8 tasks. When learning yaml, I see some will create…
daxu
  • 3,514
  • 5
  • 38
  • 76
14
votes
2 answers

Azure Yaml Schema Batch Trigger

can anyone explain what Batch in Azure YAML Schema Trigger does? The only explanation on MSFT website is batch changes if true; start a new build for every push if false (default) and this isn't really clear to me
8
votes
1 answer

Azure DevOps pipeline task `task: gitversion/execute@0` fails with unexpected error "##[error]SyntaxError: Unexpected end of JSON input"

I was running the pipeline with a simple task to install the git and check the version by the following tasks. Everything was running well till the time I created another temporary pipeline with the same yaml file for some additional tests and…
iarunpaul
  • 117
  • 2
  • 13
6
votes
1 answer

Azure yaml pipeline "Expected mapping end"

I want to define a deployment job (via a template) but, running my azure pipeline, the following errors is displayed: job-deploy.yml@templates: Expected mapping end Where is my issue ? Following the template called: parameters: - name:…
6
votes
2 answers

Azure YAML-Pipeline skips jobs and I have no idea why

Even though I set System.Debug=True I get no other information than "The job was skipped". Literally just these four words. I created a YAML-Release pipeline on Azure Devops which basically runs the jobs: job: build_release jobs: deployment:…
MajinBoo
  • 307
  • 1
  • 2
  • 10
6
votes
1 answer

Dynamic access to Key Vault secret variables in Azure DevOps

I have a Azure Key Vault with different keys (e.g. Key1, Key2, Key3). In some setting, which is dynamically read in one pipeline task, I have value which says which key to use (lets KeyName variable be 'Key2'). How can I read the secret value of the…
6
votes
2 answers

why is azure build pipeline not generating a dist folder for an angular build

It seem like the folder that are getting generated during the build are getting deleted before I could ran any other task dist folder. trigger: - master pool: default steps: - task: NodeTool@0 inputs: …
5
votes
2 answers

How to check if array contains string with Azure DevOps pipeline expressions

I have the following pipeline template that I want to use to conditionally execute stages based on the input parameter stages. parameters: - name: dryRun default: false type: boolean - name: path type: string default: terraform - name:…
Silthus
  • 1,679
  • 1
  • 23
  • 27
5
votes
1 answer

Does the "Create Work Item on Failure" option exist for Azure DevOps YAML Pipelines?

In Azure Devops "Classic" pipelines, there's a section in the pipeline Options menu where you can turn on a feature to automatically create a work item on pipeline failure. However, in the new YAML pipelines, this feature is not present in the…
Sam Hanley
  • 4,707
  • 7
  • 35
  • 63
4
votes
1 answer

How to change the value of a YAML variable between tasks inside the same job

How to set a new value of a YAML variable in YAML file through a task, and the subsequent task will display the new value using powershell? (both tasks are in the same job) I am trying with below code, but its not working. The second/subsequent task…
4
votes
2 answers

How to run an exe with Parameters in a task in Azure Devops?

I would like to know if we have a way to run an exe in Azure devops and passing required parameters for that. I am using below task "PowerShell" and it gives me the error ** "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe"…
4
votes
4 answers

Does Azure YAML pipelne support wildcards in path filter in trigger?

I have this structure of projects (folders) in git…
Lubos
  • 125
  • 2
  • 10
4
votes
3 answers

Clean All build directories in Azure DevOps Pipeline settings is not working while using YAML configuration

I use Azure DevOps for some time, and I always use Classic Editor GUI when crafting Build Pipeline. Now I'm trying to create new pipeline using YAML. Everything went well and the build was successful. But, I have noticed different behavior in…
rinesh
  • 493
  • 1
  • 8
  • 26
3
votes
0 answers

Changed build number is not shown at the environment where application was deployed

I have build that is used as release pipeline written in yaml. It takes resources out of the build pipeline and deploys it to an environment. Build details after running update build task Inside the build I'm runnig this task that is able to change…
1
2 3
9 10