236 questions
0
votes
1
answer
38
views
How to add tag to a build from classic release after successful deployment to stage
I want to tag a build that is part of the release pipeline automatically after it is successfully deployed to a specific stage[Env].
This will help us deploy the same build in different release ...
1
vote
1
answer
34
views
azure pipelines ssm command task assistance
Im trying to use the azure pipelines task SystemsManagerRunCommand@1 to run some ssm docs commands to install and update cloud watch agents on target machines.
However im having issues trying to ...
0
votes
2
answers
137
views
Azure Pipeline MS-hosted mac agent: CopyFiles Task takes a very long time
I've recently migrated some of my build steps to Microsoft-Hosted mac agents.
After creating .dmg of my app (about 10MB), I copy it into the Artifacts Staging di3rectory. This used to take seconds on ...
-2
votes
2
answers
481
views
I want to publish a zip file and then download it directly from Azure Artifact feed. Which task will help me do that?
I want to zip and publish a set of changelog files (changelogs i have added to the artifacts using PublishPipelineArtifact), making them available for all users to download directly from the Azure ...
3
votes
1
answer
1k
views
I am having issues with docker compose task in azure pipeline
This is my dev.yml which is an azure pipeline for dev environment:
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
...
3
votes
2
answers
259
views
Azure DevOps Task: AdvancedSecurity-Dependency-Scanning@1 throws System.InvalidOperationException
Azure devops pipeline task: AdvancedSecurity-Dependency-Scanning@1 ran fine yesterday, but not today.
throws error:
System.InvalidOperationException: Sequence contains no matching element
at System....
0
votes
1
answer
210
views
Azure Pipelines fail while MSBuild@1 (or VSBuild@1) The reference assemblies for .NETFramework,Version=v4.0 were not found
I used Azure Data Studio to build a sql project into an .sqlproj file which looks like that:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build&...
0
votes
1
answer
124
views
How to start server in azure pipelines (Linux agent)?
My problem is specifically that I cannot reliably start a mock server in a step and keep it alive for the following steps. Either the server shuts down or the step never completes.
Context: for a ...
0
votes
1
answer
213
views
Execute multiple http requests then wait in Azure DevOps server task
I'm writing an Azure DevOps extension in which I'd like to create a server task to execute a couple of http requests and wait for the completion event from an external source. My problem is that the ...
1
vote
1
answer
107
views
Azure DevOps ARM deployment pipeline task failing. Error: BadRequest: Creating or updating a system managed identity credential is not supported
The following yaml script fails with ARM Deployment task.
The error is quite strange because I am not updating a system with managed identity, but that is error.
The script is as follows:
- task: ...
0
votes
1
answer
250
views
Azure DevOps Pipeline Unable to work with ARM template deployment yaml template for Azure Data Factory Build Pipeline
I am attempting to execute an Pipeline which uses the ARM template deployment to execute pipelines to Azure
The yaml script is as follows:
- task: AzureResourceManagerTemplateDeployment@3
inputs:
...
0
votes
1
answer
164
views
Unable to Authorize AzureDevOps application to Azure Data Factory
I am trying 'Authorize' Azure DevOps to access Azure Data Factory.
We have created a Service Principal for ADO, but when I try to Authorize it when adding a Azure Powershell task I get the following ...
0
votes
2
answers
171
views
Rollback in a classic release Azure Pipeline
My actual deployment will be from stage1 to stage2. Now I want to be able to rollback stage1 if there is an error or rollback on stage2 if stage1 passes and stage2 does not. I added stage3 as a way to ...
0
votes
1
answer
344
views
ADO Pipeline "Mapping values are not allowed in this context."
I'm getting the followin error when running a pipeline in ADO:
azure-pipeline-flex.yml: (Line: 23, Col: 22, Idx: 490) - (Line: 23, Col: 22, Idx: 490): Mapping values are not allowed in this context.
...
0
votes
2
answers
253
views
DigiCert - Azure DevOps YAML task SSMClientToolsSetup@1 Fails with "The Windows Installer Service could not be accessed" Error
Azure pipeline fails on the SSMClientToolsSetup@1 task:
Starting: SSMClientToolsSetup
==============================================================================
Task : Installer for ...
0
votes
1
answer
68
views
Azure pipeline consume azure-pipelines.yml located in sub-directory
I have a git repo called comp_rep_qt, which uses git overlay mechanism and clones another repo.
- comp_rep_qt
azure-pipelines.yml
When the pipeline is triggered, azure-pipelines.yml has scripts ...
1
vote
2
answers
201
views
Variable group not resolved in File Creator task in Azure Pipelines
I have a project in Azure DevOps to build and release e2e tests for other FE projects. We are moving from conventional GUI pipelines with task groups to YAML pipelines, but I am having issues when ...
-2
votes
1
answer
257
views
Can we display only a specific part of output from kubectl describe command in azure pipeline logs?
I'm creating an ansible task and using shell to execute kubectl describe node nodename command, and I want to display only a specific part of that output in azure pipeline logs. How I can achieve this?...
0
votes
2
answers
114
views
Is there any way apart from using key vault, agentless pipeline and parameters to provide user input during pipeline runtime in azure?
I'm trying to provide user input during pipeline runtime but not able to give it. is there any way I can achieve this in azure pipeline apart from using parameters or using key vault to provide the ...
1
vote
1
answer
2k
views
How to update an azure pipeline variable from a powershell task?
How do I update a pipeline variable in an azure task?
I'm currently thinking og using the Azure cli to do this:
Login to az
use az pipelines variable update --name=AppVersion --value=7.13.1 command ...
0
votes
2
answers
204
views
Why Azure Yaml pipeline 'Template Parameter' if-condition does not resolve correctly while comparing the numbers?
I have a parent.yml and sub.yml as shown here:
parent.yml:
variables:
- name: JavaVersion
value: 21
jobs:
- template: templates/sub.yml
parameters:
JavaVersion: $(JavaVersion)
sub....
0
votes
1
answer
449
views
Access variable between pipeline jobs
I have a yaml which calls a template to perform a few tasks one of which is to deploy azure infrastructure and another is to run a powershell script to parse output variables.
How do I access these ...
1
vote
1
answer
596
views
Azure custom task visibleRule definition error
When trying to update a custom task's version I get this error:
Task definition visible rule 'serviceType = A || serviceType = B || ((serviceType = C || serviceType = D) && deploymentMode = ...
0
votes
1
answer
297
views
In Azure DevOps bash task env, What is the variables default value if the variable doesn't exist in ADO variable group?
My question is an extension to this question:
How to add env vars into Azure Devops pipeline
@Krzysztof Madej answer is correct, but I want to know if the secret env var that you're passing isn't ...
1
vote
0
answers
514
views
Error downloading Task from Self-Hosted Windows machine
When I run my pipeline from my agent v3.x.x in a self-hosted windows machine, I get the following error when trying to download task AzureKeyVault@2. However, it allows downloading tasks as Powershell@...
0
votes
1
answer
856
views
How to use the Json Variables in Azure DevOps YAML Pipeline?
I want to deploy the azure resources(ADF) and while deploying I need to override some DEV ARM template parameters and one of the parameters to deploy is of JSON OBJECT which I store its value in the ...
1
vote
1
answer
2k
views
Azure pipeline cannot find installed python libraries
Below is my build yaml
I am building a virtual environment named env and installing pandas into it. The artifact is published successfully.
When I downloaded the artifact and activated env, I get ...
0
votes
0
answers
83
views
Use Azure Pipeline variable dynamically in Python
I read an SQL statement from a .sql-file within an Azure Pipeline Python task, using:
with open(file_path, "r", encoding='utf-8') as f:
sql_statement = f.read()
In this .sql-file, there ...
1
vote
1
answer
165
views
Azure custom task input - conditional required
I got an Azure custom task with inputs defined in its task.json file. Can I make an input required based on the value of another input?
Pseudo code of what I mean (the required of the 2nd input is the ...
1
vote
1
answer
904
views
Azure pipeline task: ManualValidation passing parameter into input
I've tried many variations but without success.
I am trying to achieve this functionality but using a parameter of emai addresses and groups:
This works:
steps:
- task: ManualValidation@0
...
0
votes
0
answers
78
views
Xamarin Pipe Failing #azure devops Pipe # error MT5209
I have 2 repo one is Testing and another is my master.
I have xamrin code and I m using azure devops Pipe.
- task: ios-bundle-version@1
inputs:
sourcePath: 'myapp/myapp.iOS/Info.plist'
...
0
votes
1
answer
543
views
Unable to clone (download) terraform modules from Azure repos using Azure pipelines
I am not able to download Terraform modules located at Azure repos.
Azure build pipeline yaml file is like the below:
trigger:
- feature/iac_create
pool:
vmImage: ubuntu-latest
steps:
- script: |
...
0
votes
2
answers
84
views
ADF task modification
@string(equals(substring(pipeline().globalParameters.ENVIRONMENT_ROOT_FOLDER,0,2)),(substring(pipeline().parameters.TargetPath),1,3)))
this throws error :: function 'equals' does not accept 1 ...
0
votes
0
answers
986
views
How to pass parameter value of one build pipeline to another build pipeline as a input in azure devops using YAML?
I have a build pipeline which is running with parameter value which is dynamic and once that build pipeline is completed then I should trigger another build pipeline which is in the same project ...
1
vote
0
answers
128
views
ArchiveFiles@2 task. Failed with following error: zip warning: could not open for reading: .git/gc.pid
I’ve a failed job with the following errors when merging a pull request with DEV branch.
zip warning: could not open for reading: .git/gc.pid
zip warning: could not open for reading: .git/gc.log.lock
...
0
votes
1
answer
828
views
How to retrieve Powershell variable across tasks?
I'm trying to set a Powershell variable in an Azure devops pipeline, then retrieve that variable in a subsequent task. But the variable cannot be found.
In the first Powershell task I've set the ...
0
votes
1
answer
532
views
Azure self-hosted agent kubernetes task fails
I am using Azure self-hosted agents using VMSS, when running Kubernetes@1 task on the agent it returns this error couldn't get current server API group list: Get "https://<aks>.hcp....
1
vote
1
answer
1k
views
Azure pipeline : Command Line ##[error]Bash exited with code '1'
I am trying to execute my cypress test using azure pipeline but while executing job facing below issue:
yml file:
# To configure triggers for Azure CI see
# https://docs.microsoft.com/en-us/azure/...
0
votes
1
answer
2k
views
AzureCLI task in Azure DevOps pipeline cannot find the location of scripts
I am using Azure DevOps pipeline and in one of my tasks I need to run a bash script which contains some Azure CLI scripts. I have put this script in a folder called scripts, and my pipeline is running ...
1
vote
1
answer
499
views
How to use azure pipeline to deploy jar files to azure artifact using maven task
I created an azure artifact and add it to pom.xml and I configure ~/.m2/settings.xml in the agent machine with the token. and when I deploy locally it is work but when I use the maven task in the ...
0
votes
1
answer
605
views
Finding the right cache for PR build in context of Azure DevOps pipeline caching
I am trying to use the Azure DevOps pipeline caching mechanism like described here https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
but I am struggling to ...
0
votes
2
answers
326
views
What is "main" branch in context of Azure DevOps pipeline caching?
I am trying to use the Azure DevOps pipeline caching mechanism like described here https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
but I am struggling with ...
0
votes
1
answer
515
views
Python Script in Azure pipelines failing with error
I am trying to execute python script using filePath option, though I am passing the correct path the script task is failing with error 'The given path was not to a file', below are the task ...
0
votes
1
answer
1k
views
How do I add a condition to overrideParameters in Azure pipeline task AzureResourceGroupDeployment
Let's say that we have an Azure pipeline task like so:
# Azure resource group deployment v2
# Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines.
- task: ...
0
votes
0
answers
629
views
How to configure console of azure devops pipeline powershell task to properly format Write-* Cmdlets' output?
I'm using the following PowerShell task:
2022-12-09T04:30:32.5910772Z Task : PowerShell
2022-12-09T04:30:32.5911006Z Description : Run a PowerShell script on Linux, macOS, or Windows
2022-12-...
0
votes
1
answer
427
views
Can't package Azure DevOps Extension, cause a dependency includes a file with spaces in the name
After updating QueryAzureDevOpsExtensionVersion@3 to version 4 and the same for PackageAzureDevOpsExtension, I started getting errors in PackageAzureDevOpsExtension.
All errors looked something like ...
1
vote
1
answer
604
views
Installing Java 14 on Azure pipeline for MacOS agent
I need to use Java 14 on a hosted agent (macos-12) and I'm trying to install it through a script and then use the JavaToolInstaller task to make it available.
I have modified the script from https://...
2
votes
1
answer
949
views
Azure DevOps Docker@2 Task passes despite build failure
I am building a pipeline in Azure DevOps and trying to create a job that builds a Docker image. My intention is that the step fails if the Docker build is failing but against my expectations the tasks ...
0
votes
1
answer
3k
views
Conditional steps based on parameter value in template task Azure Pipelines YAML
I have a step where I check if there are changes in a specific folder since the last commit (I set isOutput=true because I need this in another stage later as well):
bash: |
git checkout origin/$(...
1
vote
1
answer
875
views
Is there a way to see more details in azure pipeline building?
My company recently upgraded from macOS11 to macOS12 in azure pipeline. But the building project pipeline keeps failing with this error:
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
...