Questions tagged [azure-devops-pipelines]

269 questions
0
votes
1 answer

I cannot work out why this Azure CLI wont work in my Azure Pipeline

I keep getting the following problem in my pipeline when passing a runtime variable into the following two CLI commands. az webapp create --resource-group $(RG) --plan $(azureSubscription) --name "%APPNAME%"' az webapp config appsettings set --name…
Jason
  • 510
  • 5
  • 27
0
votes
1 answer

Azure App Service Problem in DevOps Pipeline

Hi does anyone have any idea on why im getting this error: Got service connection details for Azure App…
0
votes
1 answer

Azure DevOps generating error when using GitVersion to generate version number

I'm working on an Azure DevOps release pipeline, and wanting to use GitVersion to auto-generate the semantic version number for my builds; I've implemented this without problem in the CI build, but when I come to do the same for the release…
David Keaveny
  • 3,904
  • 2
  • 38
  • 52
0
votes
0 answers

Azure DevOps CD pipeline using CMD

I'm now using Azure DevOps Server to implement a Azure DevOps CI/CD Pipeline(Using Command Line to perform the job in Release Pipeline) with Spring Boot Java Application. If you are developing java application, you will know that you have to use…
0
votes
1 answer

Expression does not evaluate to true despite both conditions being true

This is what I have for this particular stage: parameters: - name: services type: object default: - admin - admin-v2 - api - client stages: - stage: UnitTests displayName: Run unit tests on service... dependsOn: Changed condition:…
cjones
  • 8,384
  • 17
  • 81
  • 175
0
votes
1 answer

Conditional in pipeline always triggering "Object reference not set to an instance of an object."

I have the following template which should be setup such that it always passes given that I'm just testing this out: parameters: - name: services type: object default: - admin-v2 stages: - stage: UnitTests displayName: Run unit tests on…
cjones
  • 8,384
  • 17
  • 81
  • 175
0
votes
1 answer

How fetchdepth=1 matters to sonarcloud analysis

I am new to Devops and stuck with setting up fetchdepth in my Azure devops pipelines. One of the devops is suggesting to set it to minimum to 10 so that Sonarcloud does proper analysis else everything is squashed into 1 commit. can someone elaborate…
0
votes
2 answers

Azure DevOps Pipeline: Code scanner with notifications

We are currently using the WhiteSource Bolt task in our Azure DevOps pipeline to scan our code for known vulnerabilities. This task will produce a report on the pipeline level, plus there is also a summary report for all vulnerabilities for all…
Petr Hecko
  • 460
  • 1
  • 8
  • 17
0
votes
1 answer

Can't run PowerShell script in Azure DevOps Pipeline 'parse error'

So, I'm new to Azure Devops (but not Azure or PowerShell). I've got two scripts as tasks in my pipeline, the first runs perfectly (Note: no az module commands). The second one fails (It has one Az call). The error I get in the pipeline…
GLaisne
  • 155
  • 1
  • 12
0
votes
1 answer

Re-use YAML sequence inside azure devops pipelines

I would like to re-use lists of servers in multiple deployments. A simplified version of what I'm doing in some template deploy-tasks.yml: parameters: - name: servers type: object - ${{ each server in parameters.servers }}: - task: CopyFiles@2 …
Sunib
  • 304
  • 2
  • 14
0
votes
0 answers

DevOps release pipeline failed when code pushed on GitHub repository

I integrate DevOps release pipeline with github but its failed when auto deploy BUT its working when manually deployed please check the attached screen shot So when code pushed on master branch then pipeline failed but when I use same Artifacts and…
0
votes
1 answer

Splitting out build and deployment pipelines and can't figure out where the k8s manifest uploads need to go

So I took the system generated azure-pipelines.yml and now I'm splitting it out into build.yaml and deployment.yaml that each have their own pipelines in Azure DevOps. I've added branch and build validation to the production branch so that PRs are…
cjones
  • 8,384
  • 17
  • 81
  • 175
0
votes
2 answers

How to change Azure DevOps environment agent folder structure

To achieve continuous deployment, we used a (classic) release pipeline on Azure DevOps to deploy a webservice to a VM in our intranet. To benefit of a yaml deployment pipeline, I replaced our former deployment pool agent on that VM with an…
0
votes
3 answers

Trigger status update at the time of ADF deployment

I am deploying the ADF ARM template from DEV instance to PROD using Azure DevOps pipelines. For the deployment below are the steps I followed. Scripts provided by Microsoft to stop the triggers before deployment ARM template deployment Scripts…
Antony
  • 970
  • 3
  • 20
  • 46
0
votes
1 answer

Installing Self Hosted Linux Agent for Azure devops Server

Hello Cloud Engineers, I am trying to create a self hosted agent in azure to run by build and release pipeline. When i am configuring the linux VM as a agent, i am getting below error. --------OS…