Questions tagged [azure-pipelines-yaml]

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.

1379 questions
0
votes
1 answer

Deployment of Python web app fails when all packages are not included in the file requirements.txt (even though they are installed in the yaml tasks))

I deploy Azure functions using yaml scripts. For some reasons, I do not put all my package requirements in the file requirements.txt, as this is used by some other processes. Yet, when deploying my web app through a YAML pipeline, I want to install…
0
votes
1 answer

Azure DevOps pipeline repository trigger doesn't fire

Context I'm creating a CI/CD configuration for an application having this repository configuration (each repository in the same Organization and Project): Frontend repository (r1) API Service repository (r2) Infrastructure As Code repo (r3) Within…
Hoghweed
  • 1,938
  • 1
  • 16
  • 35
0
votes
1 answer

How to disable the checkout option in azure pipelines? I wanted it to checkout just once

My azure pipeline consists of multiple stages. Each stage has one job. Usually, when I run a pipeline it's checking out from the repo for each stage. But I don't want it to be check-out for every stage. Is there any option for disabling it?
0
votes
1 answer

Azure DevOps Variable Groups Password not working

I'm having userName and passWord field in my Azure DevOps Variable group, and I would like to pass the userName and passWord to my python script as a command line argument, I'm able to get the userName without any issue but passWord is not coming…
0
votes
1 answer

Yaml File to trigger pipeline

Can someone provide a template of a yaml file to trigger azure pipeline from Java maven project? I know already how to create pipeline from azure deveops. But I need the pipeline to trigger from framework every time a new branch is created
0
votes
1 answer

Getting Django env vars into Azure Pipelines for running unit tests

I've tried a few ways of doing this and every time the step fails saying: ... File "/home/vsts/work/1/s/api/config/settings.py", line 23, in SECRET_KEY = os.environ['DJANGO_SECRET_KEY'] File…
0
votes
1 answer

variable inside variable in yaml files?

Here is a piece of code: parameters: - name: Scenario1 type: object default: ['Test1','Test2','Test3','Test4'] - name: Scenario2 type: object default: ['Test5','Test6'] jobs: - job: Test_Run pool: vmImage: 'ubuntu-latest' steps: …
0
votes
1 answer

Deploy Angular files to Azure StorageAccount - Failed to load resource:

I have deployed Angular dist files to a Container named myui in Azure StorageAccount using Azure Copy. The deployment was successful and the files are available in the Container. Using the Blob url…
jAntoni
  • 591
  • 1
  • 12
  • 28
0
votes
1 answer

Azure Pipeline YAML templates - Is there any way to check and confirm if a pipeline covers all the required jobs while using a template?

We are using yaml pipelines in Azure Devops along with templates. The requirement is to identify if all the pipeline that uses the template are running a required set of steps or not? Is there any way to confirm this, other than manual…
0
votes
2 answers

Can I call an Azure Pipelines task once for each file in a folder?

I'm trying to create a pipeline to run swagger-codegen for each Swagger document in a repo. I'd like to avoid having to keep the pipeline yaml updated for each API specification we generate. For most stages of this process, it's enough to loop…
Peter Bailey
  • 131
  • 6
0
votes
1 answer

Azure pipeline, last stage is skipped and I don't understand why ! Is there a limit on approvals or a limited time?

I am working on a pipeline running on a Windows Self Hosted agent. I use a script in Stage1 that initialize a variable, I use the variable in a condition on Stage2 and Stage3. If variable is true, Stage2 is ran, this stage as an environment with an…
ClaudeVernier
  • 427
  • 4
  • 20
0
votes
1 answer

Push Docker Images from Azure Devops Build artifacts to Image Repository

I am building an Azure DevOps pipeline using a yml file. In the yml definition I have two stages, one is to build docker images , second stage is to push these images to ACR. I am able to store docker image as build artifact in the first step. I can…
0
votes
1 answer

Azure pipeline, branching out works but unable to branch back in after approval

I am working on a pipeline running on a Windows Self Hosted agent. I use a script that initialize a variable in one stage and use the variable in a condition on the next two stages. If variable is true, third stage is run, this stage as an…
ClaudeVernier
  • 427
  • 4
  • 20
0
votes
1 answer

Format array for Helm upgrade overrideValues

I have defined the following job template: parameters: - name: prefix type: string - name: apps type: object - name: containerRegistry type: string jobs: job: Build Docker Images displayName: Build and Push image pool: vmImage:…
ACB
  • 1,607
  • 11
  • 31
0
votes
1 answer

Azure pipeline, issues with displaying variables and branching

On a previous post Azure pipeline: how to use an output variable in a condition, I was having issues to use variables from dependencies. Now, I have a pipeline where I call a script that returns true or false. The return value sets what is the next…
ClaudeVernier
  • 427
  • 4
  • 20