Questions tagged [azure-pipelines]

For questions about Azure Pipelines, which is a proprietary Microsoft CI solution for deploying your applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Azure Pipeline PowerShell@2 Task can't run 'invoke-build' command as inline script (build PowerShell Module)

I'm trying to build a powershell module in an Azure pipeline (dev.azure.com). I've setup an initial pipleline and then building it up incrementally in small steps, because inexplicable errors are ...
1
vote
1answer
18 views

Azure DevOps Pipelines running on incorrect branches

I'm attempting to build different branches with different YAML configuration files in each branch. However, when I commit to a branch that should only trigger 1 pipeline it triggers both. Development ...
0
votes
0answers
20 views

ASP.NET MVC / Web API project CI/CD Build / Release Pipeline Fails

I've been tinkering on this for over a day now and honestly the docs are all over the place and I can't seem to win. Currently I have the pipeline working up until building the solution, now it fails ...
1
vote
0answers
18 views

Multi-Stage Azure Pipeline with a path trigger - first stage always runs

I have a multi-stage pipeline for my terraform code. This is my first pipeline so I am sure I'm missing something but there appears to be some inconsistent behaviour that is rather frustrating. The ...
1
vote
0answers
19 views

Azure deploy pipeline with/without approval on separated enviroments

I have two separate environments under my repository: development (Approvals are not configured but the environment exists) production (Approvals rules are configured via dev.azure.com UI) The ...
-1
votes
1answer
22 views

Cherry pick a code push to next environments in Pipeline

We are team of 7, we have a repository, we keep pushing our changes to it. No Branching at all. And there is pipeline setup. Dev - Test - Stage - Prod Whenever we push something from LOCAL it ...
0
votes
1answer
46 views

Azure DevOps Different Post Deployment script per environment

I have a visual studio database project being built and released through Azure DevOps. I need to execute a different post deployment for Dev vs. Prod. Is there a way to achieve this either through ...
1
vote
0answers
60 views

Error MSB4226: Microsoft.WebApplication.targets" was not found

I was wondering if someone has ran into this problem as I have tried everything to fix. I have a DevOps build pipeline in Azure running visual studio 2015 version (which matches my local machine) and ...
3
votes
1answer
40 views

How to buy more Azure DevOps pipelines build minutes?

As mentioned on the Azure DevOps official pricing page, the plan provides 1 Free Microsoft-hosted CD/CI parallel job with up to 1800 minutes per month and 1 Free Self-hosted CD/CI parallel job with ...
4
votes
1answer
88 views

How to properly setup a multi-environment release pipeline in Azure YAML pipelines?

We have just migrated from TFS 2018 to Azure DevOps Services and we're having a hard time trying to figure out the new Azure YAML pipelines. We want to be able to: Run a build/test pipeline when a ...
1
vote
1answer
41 views

Using cached dependencies for pipelines in Azure Devops

I want to avoid maven downloading all dependencies from a remote repository in all build I configured a cache, but all executions still download all dependencies. azure-pipelines.yml trigger: ...
0
votes
0answers
30 views

SonarQube SCA fails on projects without Unit tests\VC++ and on projects where few Unit tests fail. How to fix this?

I finally started using SonarQube for code analysis in my projects recently, by setting up a community version of SonarQube server(offline) and was successfully able to integrate it on 2 of my .Net ...
1
vote
2answers
91 views

Azure Devops Pipelines Triggers not working

I have a Repository in Azure Repos which has branches as master, build, feature. Build Branch and Feature branches have their own pipelines code in the azure-pipelines.yaml in the branch itself ...
1
vote
1answer
52 views

How to setup priorities between pipelines that might be triggered simultaneously on Azure DevOps pipelines

I am using Azure devOps to build and deploy my application, and within that application I have a project that is being used by other related applications (let's call it project N). Thus I decided to ...
2
votes
1answer
28 views

How to deploy Dev Azure SQL code to Prod Azure SQL using dacpac without knowing the target server credentials

Here is my scenario - I have access to source Azure SQL Database where i did few changes to schema (eg adding a table). Now I want to deploy this SQL code to prod Azure SQL Database using Azure ...
1
vote
1answer
147 views

How to make .DACPAC from Azure Sql Server using Azure DevOps release pipeline?

I'm using Terraform to create my environment and I'd like to deploy Azure Sql Server along with other things. I use terraform so I can easily destroy all deployed things and reduce costs when I'm not ...
1
vote
1answer
601 views

Azure Pipelines: Exclude folders using Azure App Service Deploy

I have an Azure DevOps Pipeline which includes an Azure App Service Deploy task (AzureRmWebAppDeployment) for deploying an ASP.NET Core 3.1 project: - task: AzureRmWebAppDeployment@4 inputs: ...
3
votes
1answer
610 views

Project pipeline not able to access NuGet package from Artifact Feed in different Project

Updated 20th Feb & 21st Feb Summary Not able to find NuGet package from our private feed under Artifacts. Our Azure DevOps environment In Azure, we have our company "space": dev.azure.com/...
0
votes
1answer
102 views

Applying manifests in Azure DevOps pipeline

Basically, I want the pipeline to apply some manifests before deploying images from ACR. No images need to be made. It would just be things like applying the issuer.yaml, ingress.yaml, and maybe a few ...
2
votes
1answer
125 views

Azure DevOps - how to create a 2nd Microsoft-hosted Agent Pool

I am using Azure DevOps. I have 5 Microsoft-hosted agents. And 10 pipelines. One pipeline in particular can get a bit grabby, so I want to restrict it to use just 2 agents. But I want my other 9 ...
0
votes
2answers
27 views

'find' command suddenly not working in windows hosted agents

In the YAML file defining our ADO build pipeline we have the following section - bash: | pip install pylint find preprocessing/ subtyping/ visualisations/ -name '*.py' | grep -v hmm | grep -v ...
3
votes
1answer
125 views

How to arrange builds for staging and production with Azure DevOps?

On Azure DevOps I need to build and deploy a ClickOnce application. Because this application needs to be signed (including config) I must create a build for staging and a build for production. I ...
1
vote
1answer
30 views

Azure devops, fortnightly build trigger

I'm trying to write a build pipeline that runs every second friday (essentially at the end of a sprint). Using the classic editor it appears I can only set a trigger that would run every friday. Is ...
2
votes
1answer
221 views

Publish pipeline artifact to Slack

I have a pipeline on Azure DevOps that publishes an artifact (releasenotes.txt). It also has integration with Slack using ( https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/slack?...
0
votes
1answer
19 views

Where Azure DevOps Services Enviromnent come into play?

I am trying to understand where you actually use the environments you setup in a project. I though I could use them to deploy on specific servers from deployment agent which are hosted on another on ...
1
vote
1answer
18 views

Is it possible to force to false or true the App.config transformation with arguments on Azure DevOps Pipeline?

Is it possible to force the TransformOnBuild to false using MSBuild parameters in Azure DevOps? So I Use Azure DevOps Pipeline to build a clickOnce application for a staging environment Here is my ...
1
vote
1answer
171 views

Azure DevOps - Conditionally Build and Deploy

Say we have 6 microservices in a monorepo, each with their own CI build pipeline that is currently only building each project and running unit tests. Is there a way to identify which projects have had ...
2
votes
1answer
484 views

How to install aws cli on a self-hosted azure DevOps Windows agent?

I have quite some difficulties installing aws cli on a self-hosted Azure DevOps Windows agent as part of a pipeline. Does anyone have a working solution? What I have tried so far: a) install aws cli ...
5
votes
2answers
490 views

Azure Devops, multiple on-prem environments, variables per environment

I've configured first deployment pipeline to an on-prem DEV environment. The project consists of 3 identical environments, DEV, UAT and PROD While their setup is exactly alike, their config (database ...
1
vote
1answer
162 views

How to pass variables between build/deploy tasks in a TaskGroup in VSTS 16.131.28601.4

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code. I've been using Powershell tasks and the ##vso[task.setvariable ...
4
votes
3answers
2k views

Rename build pipeline .yml files in Azure DevOps

I have a .NET Core application that has three build pipelines. (Windows, Linux, macOS) In each of them, the application gets assembled a little different. This part works so far. Azure created for ...
1
vote
1answer
158 views

How do I get Azure Release Pipelines to move a .jar from a Build Pipeline job and place it on a Linux VM?

I know Azure release pipelines can deploy to on-premise servers and other cloud VMs. My pom.xml file enables Maven to create a .jar file. My Azure build uses this pom.xml file. The Azure build ...
2
votes
1answer
175 views

How do I get the UUID of a build Mac from Azure DevOps?

I'm trying to set up an Azure DevOps pipeline to build a macOS app. I think I have all the necessary steps in place, and it runs as far as I expect it to for now. However, I now have reached the step ...
3
votes
1answer
1k views

Single Build with Multiple Artifacts

I'm a little confused on the Azure Pipeline steps. My solutions has many projects and one UI project that contains both an ASP.Net-Core WebApi/MVC with Angular. the Build Solution builds similar to ...
1
vote
1answer
550 views

Reading two Repos in Azure Build pipeline

I created a Build pipeline in Azure using classic editor and selected empty job instead of using any template. This way provides option to connect only one repository at once. My requirement is to ...
4
votes
0answers
480 views

Multi-branch release pipeline in Azure Devops for multiple artifact triggers [closed]

Overall problem I seem to run around myself in circles with this problem. Either I'm doing something wrong, or Azure Devops simply does not support it. For the simplest case (we've got many products ...
0
votes
1answer
586 views

Pushing code changes from Pipeline back to repo/branch, using Git!

Here is the scenario: We are trying to "automate" our Salesforce development with Azure Pipelines. Since Salesforce is very unique when it comes to deploying changes, I have tried to create a Pipeline ...
2
votes
1answer
365 views

Storing Code Signing Certificate

I own a public and open-source Windows Forms/C# application in a Github repo that I want to start code signing with my certificate through Azure Pipelines CI. I have set up my pipeline and it is ...
0
votes
1answer
576 views

Git Remote Access in Azure Pipelines, possible?

I'm trying to achieve the following through the build pipeline. Default branch: SIT (from the Azure Repos repository) Trigger: whenever a change is made in DEV branch In a powershell task do the ...
0
votes
1answer
538 views

Azure DevOps and private Docker registry

When I try to add a Service connection to a private Docker registry in Azure DevOps, it seems I have to provide a Docker Hub (Docker ID) user and password. Why is that? I just want to push to our ...
0
votes
1answer
39 views

Building .Net apps outside Docker?

My company uses Azure DevOps and utilized Pipelines for building, testing and deploying (currently NuGet packages) .Net Framework apps. My boss has made it clear he wants us to containerize all our ...
0
votes
1answer
368 views

How to get Github username variable in Azure DevOps build pipeline?

I have an Azure DevOps pipeline build configuration which builds automatically with the master branch. I want to access the GitHub user or username who committed last. If I access variables $(Build....
2
votes
1answer
800 views

Can we reuse Variables across variable groups in Azure DevOps?

I'm using DevOps to deploy Azure Data Factory ARM template I'm using a deployment pipeline to take artifacts from a prior build pipeline and deploy to various environments (TEST, PROD) I've created ...
2
votes
1answer
305 views

How to get dependency from file share in Azure DevOps pipeline

We are trying to set up a CI pipeline for building several Docker containers and deploying them to a container registry using Azure DevOps. Our code, the Docker and configuration files all reside in a ...
0
votes
2answers
3k views

CI/CD pipelines Azure devops automatic merge after deploy release

I have a classic env. setup like following: I have 2 branches : Develop and Master. Is there any way in azure devops to setup the following rule: When a deploy is succeeded on dev environment (...
1
vote
1answer
143 views

Gitflow with pull request or pull request

My team is currently using gitflow workflow into develop branch. Here is an overview for what we are doing. We are a sql server data warehouse team using Azure repos and Azure devops to build and ...
1
vote
1answer
253 views

Azure Devops: Filter Test Projects in Nuget Build Pipeline

I'm working on a nuget build pipeline. My problem is that my integration test project is being packaged and deployed to the azure artifacts, while my unit test projects are not. The integration test ...
3
votes
1answer
699 views

What is happening in an Azure Devops build and release?

I'm finding the Azure devops documentation pretty poor - or maybe I'm just not familiar enough with it for it to make any kind of sense to me. Having said that, I've managed to create a build pipeline ...
2
votes
2answers
783 views

How to setup Azure DevOps Pipelines and Releases with multiple apps

Wanting to deploy a collection of .NET Core API's (microservices) using Azure DevOps I run into some challenges: Having 10+ small API's, how should I setup the Release Pipeline? One pipeline with one ...
1
vote
1answer
1k views

How to setup multiple build environments in Azure DevOps/TFS2018?

So I have an application that contains an ASP.NET Core backend and a React frontend (pure static). In our TFS 2018, we have created a Build that does the following: Get sources from the repo Get ...