Questions tagged [azure-devops-pipelines]

269 questions
0
votes
1 answer

Unable to save output from Rscripts in system directory using Devops Pipeline

I am running Rscripts on a self hosted Devops agent. My Windows agent is able to access the system's directory where its hosted. Below is the directory structure for my code Agent loc. : F:/agent Source Code : …
0
votes
1 answer

Azure DevOps link release pipeline to deployment group

I am working with a self-hosted agent to release code into a target on-prem server. In my case, I just want to copy a file from the artifacts directory (.exe file) into a folder on my machine. So I created a deployment group and installed the…
JakeUT
  • 359
  • 1
  • 4
  • 16
0
votes
2 answers

Unable to run Azure DevOps shell script tasks on Docker-Linux agent

I have a shell script (file.sh) with echo message. Created self hosted agent in a Linux container with the help of Microsoft documentation. Created a pipeline job with "Bash" task to run the shell script (file.sh). End up with no outcome, though…
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
2 answers

Issue with single quotes running Azure CLI command

My script snippet is as below: End goal to accomplish is to create a Azure DevOps variable group and inject key-values from another variable group into it(the newly created Azure DevOps Variable Group) set -x echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
1 answer

Issue with release pipeline: Powershell script is not running in the working directory specified

In my release pipeline, I have specified the working directory for the powershell under the advanced options as $(System.DefaultWorkingDirectory)/_{project name} However, when the powershell script ran, the working directory of the script is…
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

How to create a deployment to an IIS server out of sight from DevOps Release pipeline

I have searched around for a while, but not been able to find a good way to create a "installation bundle" for web service to run on IIS. My problem is that we need to manually copy files to the on premises servers due to security, and thus not…
0
votes
1 answer

How can I use a variable of one yaml in another yaml using powershell?

As I am new to yaml and powershell,Can someone please help me in understanding the way of using a variable of one Yaml in another one? Example Scenario: I have variable- $a in abc.yml under the folder-Test1,now I have to use the same $a in bcd.yaml…
0
votes
2 answers

Terraform Plan Fails in Azure Devops

I am trying to use terraform to build the infra in Azure. I am automating it through Azure DevOps, we don't have the tasks in our org yet, I am running through CLI scripts to get it, while I am able to till terraform init but unable to run through…
0
votes
1 answer

How to combine multistage CICD yaml with pull request

I've recently applied the multistage YAML for my project, which consists of both CI and CD. Afterwards I setup the branch policies to only trigger the CI portion when a pull request was created, by adding condition into the CD stage to skip…
0
votes
1 answer

Azure pipline: error NETSDK1004: Assets file 'D:\a\8\s\xxxPackager\obj\project.assets.json' not found

I have a Azure pipeline with a MSIX Build and Package step for a WPF solution that started occasionally failing last week (with no changes to the pipeline definition) and is now failing every time with the error: C:\Program…
Jules 999
  • 125
  • 1
  • 9
0
votes
1 answer

Azure DevOps pipelines - Release ASP.NET WebAPI application to Azure Web Apps

I usually deployed the ASP.NET WebAPI application to Azure App Services directly from Visual Studio. It is working and sometime convenient. Now I want to setup the CI/CD process from Azure DevOps. I create a build pipeline as trigger: -…
0
votes
2 answers

Azure devOps pipeLine failed with sonarCloudPrepare

I have this situation ,i trying to build and connect my pipeLine with sonarCloud i have a .net 5.0.x project and .net core 3.1.x , when build the project normally works ok , but when start to add the sonar cloud task starst to fail. with the next…
0
votes
1 answer

How to exclude folders/projects from dotnet core publish task in Azure Build Pipeline (Classic version)?

I have an Azure DevOps GIT Repo with three different types of projects. Structure looks as follows; Repository Structure I have a Build Pipeline (Classic, not YAML) to build only the .Net Core Project as below. Pipeline The pipeline settings is…