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

How to create conditional build properties in DevOps build pipeline

I have the following build pipeline task: - task: NuGetCommand@2 displayName: 'Pack CodingStyles.nuspec' inputs: command: 'pack' packagesToPack: 'src\CodingStyles\CodingStyles.nuspec' packDestination:…
0
votes
1 answer

Azure DevOps Passing Variables

we are trying to create a DevOps pipeline where we generate a string in the first stage and we would like to store into a variable which can be used in subsequent stages, or in subsequent tasks within the same stage, is there a way to do this? For…
0
votes
1 answer

Azure DevOps Pipeline decorator error on - ${{ each step in job.steps }}:

I have a simple pipeline decorator : steps: - ${{ each step in job.steps }}: - ${{ if eq(step.task.id, '2ff763a7-ce83-4e1f-bc89-0ae63477cebe') }}: - task: powershell@2 displayName: '(injected) Verify Publish Artifact task…
0
votes
1 answer

Azure pipelines, question about variables, powershell and deployments

I am building Azure Pipelines for deployments of intranet, dotnet core projects from our Windows Self hosted agent. I have a request from the team where if a PowerShell script initialize a variable to some value, the next step should include a…
0
votes
1 answer

Azure DevOps unable to trigger yaml pipeline off of completed build

I can't get my yaml pipeline to trigger based off the build completion of another pipeline. This is the code from the yaml pipeline I am trying to trigger to run, where pipelineX is the name of the pipeline build I want the run to trigger off of: …
chuanm
  • 3
  • 2
0
votes
1 answer

Azure DevOps YAML Variables Evaluation Order

I have an issue with a variable evaluating to Null on a Condition. This is the pipeline: I have a variable template that is pulled in by the main yml file: variables: - ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/') }}: …
simon_dmorias
  • 2,343
  • 3
  • 19
  • 33
0
votes
1 answer

Require just One Approval for Devops Multistage Pipeline

I have a multi-stage YAML pipeline: Build Solution | ▼ Terraform DEV \ | | ▼ | Deploy Function App | DEV Environment (No Approval Required) | | ▼ …
Nick
  • 25,026
  • 7
  • 51
  • 83
0
votes
1 answer

Azure DevOps Pipeline Build Error : The OutputPath property is not set for project 'MyProject.iOS.csproj'. for Xamarin iOS project

I am trying to setup a Azure Pipeline to build my Xamarin solution. The solution contains an Azure function project so I was trying to build by using project instead of solution. The Android project builds perfectly fine but the iOS project fails…
0
votes
1 answer

How to depend on a configuration specific job in order to download its related pipeline artefact

We are planning to setup a multi-configuration Azure pipeline like described here but our setup is more complicated than that since our pipeline will have multiple jobs with the same matrix strategy. E.g. we will have build and test jobs that follow…
0
votes
2 answers

Azure pipeline skips scheduled job

I have a very simple pipeline that has a 1 stage and 1 job that prints Hello World. I would like the stage to be triggered based only on the schedule (not when I push). schedules: - cron: "*/5 * * * *" displayName: Run every 5 Mins branches: …
0
votes
1 answer

Can't run a script from a Yaml Azure Devops pipeline

My Yaml Azure Devops pipeline failed when running a script. Situation I have this script in the Tuto-BuildDeploy repository: trigger: - none pool: vmImage: windows-latest resources: repositories: - repository: TutoDeploy ref: main …
0
votes
1 answer

Azure publish and download build artifact yaml task not working

So I am trying to copy file and publish it via Azure yaml pipeline task PublishBuildArtifacts@1 so that I can use that file in other pipeline by downloading build artifact. - script: | cat ./pipelines/config/abc.config …
Auto geek
  • 464
  • 1
  • 6
  • 21
0
votes
1 answer

How do I use both a variable group and variables in the variable section of a YAML file?

I've created a variable group in an Azure Pipeline library. It has the password to a certificate I want to apply to signing the executables during the Azure build pipeline. I've encrypted the password by clicking on the lock icon. The problem I'm…
Rod
  • 4,107
  • 12
  • 57
  • 81
0
votes
1 answer

'Expected a mapping' syntax error when using 'parameters' section in Azure DevOps pipeline templates for .NET Core app build

My current pipeline consists of 2 files: pr-validation.yml resources: - repo: self queue: name: NonProd variables: - name: 'NuGetFeedId' value: '11111b1d-1111-1ecb-1dc1-11f111111f11' steps: - template: pr-validation-steps.yml …
0
votes
1 answer

Can a child pipeline be triggered by the parent pipeline from a different branch in a different repo in azure pipelines?

I have created a parent pipeline in repo1 under the branch main. I have created two child pipelines, child1 is in repo_child1 under branch main and child2 is in repo_child2 under branch new_branch. Below is the code for the pipelines: parent…
Nisha
  • 25
  • 3