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

Trigger DevOps pipeline before another pipeline

We have the following 3 pipelines: CI CD (Dev/ Qa /Prod) Integration Tests (Dev/ Qa) When we run the integration tests against an environment, is there any way to ensure the CD pipeline has been ran first for the given environment, and if not, run…
0
votes
1 answer

Azure Pipelines YAML parameter inside parameter name (dynamic parameter name)

I have a YAML template with parameters: - name: Deploy_Test1 type: boolean default: false - name: Tests type: object default: - "Test1" - "Test2" After that I iterate the Tests with each: - ${{ each test in…
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
0
votes
0 answers

Integrate Storybook CI to Azure CI/CD for a React

I am trying to integrate storybook to my Azure build pipeline for CI/CD. I am finding it a bit difficult so far the pipeline is a simple install/build/archive/publish: trigger: - master pool: vmImage: ubuntu-latest steps: - task: NodeTool@0 …
Sole
  • 3,100
  • 14
  • 58
  • 112
0
votes
1 answer

EnvironementVariable not correct in AzureDevops pipe-line

My customer has an onprem AzureDevops set-up. I have a dedicated windows server that I use as build server. The agent is installed an runs as user X. The java application is build using custom scripts created by a 3th party. The build is launched…
0
votes
2 answers

Inline powershell script variables getting removed in Azure Pipelines

I am trying to create a .ps1 file with the Azure YAML pipelines powershell task using an inline script; - task: PowerShell@2 displayName: "Create IIS Log Cleardown script file" env: DaysToKeep: ${{ parameters.DaysToKeep }} inputs: …
0
votes
1 answer

How to get value of customSourceVersion when one pipeline trigger another pipeline?

I am new to azure pipelines. I am using Azure devops pipeline to trigger another devops pipeline. Pipelines are written in YAML schema. Pipeline A - task: TriggerBuild@3 displayName: Trigger Setup Pipeline inputs: …
Manish Jain
  • 1,197
  • 1
  • 11
  • 32
0
votes
1 answer

How to instruct Azure pipeline to read the storage account key from Azure vault for configuring diagnostics extension during publishing code?

I have configured the Diagnostics Extension on my Azure cloud project so that I can collect the IIS logs and publish them to a storage account on azure. However, I do not want to store the secret key of the storage account in the cscfg file, so I…
0
votes
0 answers

How to use DevOps Library variable groups in App Service

As I heard, one can really use the Library values in one's app. But all documentation around this topic is incomplete or really wrong, I cannot make up how! We already tried mapping the values into a JSON object in our .yaml pipeline and defining…
0
votes
2 answers

Azure pipeline YAML: assign variable to another variable

I want to define variable version_ that consists of other my variables, like this: but variables major, minor, versionCounter and branchPrefix aren't recognized, and this syntax is just transformed into string I tried to use $(major) syntax, but it…
0
votes
1 answer

Nested loops in azure pipeline yml

I have two parameter list and i want to pass these parameter values in sql task and webapp deploy task on azure pipeline yml. parameters: - name: db type: object default: [db1, db2, db3.......] - name: apps type: object default: [app1,…
0
votes
1 answer

How to store result of a AWS CLI command in Classic Azure DevOps Pipeline

I have a AWS CLI task (create-upload) that when run, returns with a json result that contains an URL. This task works fine. I however need to use the URL from that create-upload task in the next task (upload-file). Inside that create-upload task…
0
votes
0 answers

"Templates in other repositories may not specify a repository source when referencing another template" when trying advanced pipeline

I am trying to find a solution for a rather complicated Azure Devops build pipeline. I have 3 repositories (lets call them RepoA, RepoB and RepoC) which each contain templates for jobs that need to run for builds within those repositories. I also…
0
votes
1 answer

How do you properly set a workingDirectory for a Node.js with vue azure pipeline?

This is my script, but I don't know how to properly declare my workingDirectory path. # Node.js with Vue # Build a Node.js project that uses Vue. # Add steps that analyze code, save build artifacts, deploy, and more: #…
0
votes
0 answers

Azure pipeline detect build has ran more than once

Is there an inbuilt variable in Azure pipeline that checks if a build has run more than once? I want to add a condition where i skip the step if build has run more than once. As you can see ive commited once which triggered the build then i ran a…
0
votes
1 answer

How to combine two artifacts from two different pipelines in Azure DevOps using yaml?

I am generating two different artifacts from two different pipelines and I need to combine both html reports from both pipelines and create common HTML report. Pipeline_1 - test1.html Pipeline_2 - test2.html I want to create new pipeline and…
nrs
  • 937
  • 3
  • 17
  • 42