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

Obtain commits associated with pipeline run

In the Azure Pipelines Bun/Run view I can see that the current build is associated with the last N commits: Last 7 commits This is much more valuable than the Build.SourceVersion pipeline variable for incremental build's sake as I could be able to…
0
votes
3 answers

Can we replace nuget.config file with command parameters?

I am working on an Azure pipeline to run on a Windows self-hosted agent. We configured a Artefact feed with an upstream to connect to Nuget. As we are behind a firewall, it seems the only way to connect to Nuget. My pipeline was working with this…
0
votes
1 answer

Azure Pipelines YAML source

For our project, it is vital to know to understand the behavior of our yaml azure pipelines. So is there ever a situation where the azure pipeline, with ci triggers for branches, would use a different source yaml file other than the yaml file…
Alexander
  • 41
  • 1
0
votes
2 answers

Azure DevOps : excluding updates to yaml pipeline files from triggering those same pipelines?

Somehow I'm not getting how I can exclude updates yaml pipelines from trigger the pipelines themselves. I have tried some wildcards as described here both in the include item (with the ! operator) or in the exclude item and nothing worked. I've…
whatever
  • 2,492
  • 6
  • 30
  • 42
0
votes
2 answers

YAML pipeline variable scopes

I have a question regarding variables and their scopes. I want to set up a pipeline with multiple jobs and each job contains the same tasks and I want to use a template for them. I also have job variables in them which I want to manipulate during…
air duck
  • 119
  • 1
  • 8
0
votes
1 answer

Is there a way to set a default value for an array of objects in a yaml template (Azure Pipelines)

I have a yaml template that contains parameters like below. In the array / list I want to be able to set the default value for one of the properties (the object has 3). The reason being is I have some if statements that check these properties and I…
0
votes
2 answers

Conditions on Stage template not working in Azure yml pipeline

I have below main YML pipeline And below is the template that is being called. When trying to run the main pipeline is showing the error per below
sharad jain
  • 113
  • 1
  • 10
0
votes
1 answer

How to upload a package by UniversalPackages to an external private noarch repo in Azure devops pipline

We save all our build packages (conda build) in our jFrog artifactory server as the compressed tar.bz2 file that can be accessed by the URL, username and password. Currently this is done by cURLUploader task shown below - task: cURLUploader@2 …
SLN
  • 4,772
  • 2
  • 38
  • 79
0
votes
0 answers

Consuming azure devops feed during deployment of web app

I am having a python flask app which is deployed on azure web app. Recently we created a devops feed for common component and want to consume the same in webapp. For taking from private feed we use PipAuthenticate@1 This woks fine while building…
0
votes
1 answer

access file of the calling folder from Azure DevOps pipeline template

The azure pipeline templates is saved in separate repository. Currently multiple python projects with the same structure are calling a same template. In each project there is a enviroment.yml file in the root folder and will be picked to create a…
SLN
  • 4,772
  • 2
  • 38
  • 79
0
votes
1 answer

list all tasks of azure YAML based pipelines usng GET API

To list all the azure build pipelines in a particular project we're using below API. 'GET https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1' however above URL giving details of each task and its status for…
0
votes
1 answer

Microsoft.TeamFoundation.Build.WebApi associate an artifact with a build before queuing it

I have two pipelines in Azure Devops. One generates an artifact and the other one runs tests on it. The pipeline that generates the artifact gets triggered whenever a PR is created. The pipeline that runs the tests is only triggered if certain…
0
votes
1 answer

##[error]No agent found in pool Default which satisfies the following demand: node.js

I am getting following error when I try to run my pipeline on self hosted agent (2.175.2) ##[error]No agent found in pool Default which satisfies the following demand: node.js. All demands: vstest, node.js, Agent.Version -gtVersion 2.163.1 The…
resp78
  • 1,414
  • 16
  • 37
0
votes
1 answer

Make contextual github checks required to pass

I have 4 Azure Pipelines that perform checks when a PR is created. They are configured such that certain checks are excluded/included based on the changes made. For example, if the PR only contains frontend code changes, there is no reason to run…
0
votes
1 answer

How to Specify .NET Framework Version in YAML Pipeline?

I'm extremely new to YAML--I'm trying to update a plug-in library using the published artifact DLL from build B (see YAML below) however I keep receiving the following error: How can I specify the .NET Framework in the YAML so that it is not trying…
kpolewaczyk
  • 45
  • 2
  • 8