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
2 answers

What should a YAML template optional step parameter null value be?

When using a template parameter like this: parameters: - name: runStep type: step It always requires passing a value. I would, however, like to make it optional: parameters: - name: runStep type: step default: ??? For stepList it can be done…
slikts
  • 8,020
  • 1
  • 27
  • 47
0
votes
1 answer

Azure DevOps variable is unexpected set to Null

I've got a pipeline with multiple jobs. For some reason, a variable that is set the stage is Null in a condition that is running from a job. Here's the pipeline yaml: https://github.com/ossentoo/azdo-yaml-varsdemo/tree/feature/private-agent The…
ossentoo
  • 1,675
  • 2
  • 20
  • 44
0
votes
2 answers

Configuring Pipeline dependencies in Azure Pipelines

I have 2 Azure Pipelines, deploy and test. As their names imply one is used for deploying a product and the other is used for testing. When a developer wants to run their own tests on the existing deployment they trigger test. When a deployment is…
0
votes
2 answers

Can you make templates for resources and combine it with steps in a YAML pipeline?

I have a pipeline that has a section like this that lists the pipelines that would trigger the pipeline. resources: # List all the microservice pipelines to be watched plus infrastructure, the pipeline name is the name # of the stack. Note…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
0
votes
1 answer

How to configure condition based pipeline | Azure Pipeline

I have come across a scenario where I want to build source code dependant upon the source directory. I have 2 languages in the same git repository (dotnet & Python). I wanted to build the source code using single Azure Pipelines If the commit is…
Eddie
  • 581
  • 3
  • 11
  • 20
0
votes
1 answer

How can I pass a pre-defined pipeline build parameter to a template in Azure DevOps pipelines?

Template: parameters: - name: PathPrefix displayName: 'Path prefix' type: string default: '' steps: - task: DotNetCoreCLI@2 displayName: 'dotnet restore' inputs: command: restore projects:…
Josh
  • 6,944
  • 8
  • 41
  • 64
0
votes
1 answer

Using a variable set in a script in an if statement in an Azure YAML pipeline

I am trying to use a variable that is set in a script using a logging command in an if statement in an Azure pipeline as shown below, however, it takes the initial value. parameters: - name: aParameter type: string default: dothis values: -…
0
votes
1 answer

Multiple Repostories in a Pipeline from the same organisation

I got 2 projects within my Azure Organisation. I have created a pipeline from one repository which it's job is to promote code from one repo in the current project to another repo in a different project. I am using YAML and have built up the service…
0
votes
2 answers

Azure Pipeline - Transform identical key in multiple json files

I can't seem to find any documentation or information on how to transform a key that exists in multiple files. The File Transform task seems to only support the transformation of unique keys. The windows web app i have setup is an OrchardCore CMS…
0
votes
1 answer

azure devops pipeline failure when using private github submodule in a private github repo

I have two private github repo's and one repo is used as a submodule in the other. The .git modules looks like this [submodule "submodule"] path = submodule url = ../submodule I have an two factor SSO , so I use a PAT to access these…
0
votes
1 answer

Azure Pipeline configurations

I am facing a problem that is confusing me a bit and I would like to find the best approach to avoid to repeat my pipelines. in this GitHub repos I have my yaml file to build the project, and this yaml targets a folder template on which it runs the…
0
votes
3 answers

azure template not allowing jobs keyword

bare with me as this is my 2nd week really diving into pipelines on Azure but.. I saw an example where I can create a template that has a jobs:…
Erik
  • 2,782
  • 3
  • 34
  • 64
0
votes
1 answer

Azure DevOps pipelines VS Test failures. All those unit tests are passing locally

I have a .Net framework 4.7.1 solution with two projects. In that one is for unit tests. Those unit tests are running successfully in local but not running in Azure Pipelines. Pipeline: Pipeline YAML Below, #Your build pipeline references an…
0
votes
2 answers

Using templates only for storing parameters in azure devops

Is it possible to store parameters in templates and call them from pipeline? I just want to have a several templates with different set of parameters and have possibility to call them from main pipeline. For example: template1.yml parameters: -…
0
votes
1 answer

Variable substitution in pipeline breaks integrity of json file in a blazor webassembly application

I'm using this step in an Azure pipeline, to deploy a Blazor WebAssemby application. I need to set some configuration values in the application, so I used this technique to inject some custom value (variable substitution using 'JSONFiles', I added…