Questions tagged [azure-pipelines-tasks]
216 questions
0
votes
1 answer
How Can I Use Variable in Azure Data Factory Pipeline Copy Data Task
I have created a pipeline in Azure Data Factory where it got two job
Read from Synapse and write into file.
Write another file with no content
Both the file name should be same.
What I tried was creating a variable and use that variable as file…

Lonely Planeteer
- 389
- 1
- 5
- 21
0
votes
2 answers
How not to create duplicates in a task "Create work item" in azure devops
I have pipeline in azure devops. In this pipeline i use task "Create work item", how i can not to create duplicates with the same name ?
I use classic editor

Vitaliy Kuzmenko
- 29
- 4
0
votes
1 answer
Accessing variables in Azure loops using templates
I want to loop through the pipeline artifacts and pass them as variables to a task.
Followed this answer here, but no luck:
https://stackoverflow.com/a/59451690/5436341
Have this powershell script in the build stage to get the artifact names and…

Mounika
- 371
- 4
- 18
0
votes
1 answer
Variable values are not injected into local.settings.json
I have an Azure Function project. It includes local.settings.json configuration file with some secrets. Those values are retrieved and used by the xUnit testing project. Everything works well when run on Visual Studio, but in the Azure build…

David Shochet
- 5,035
- 11
- 57
- 105
0
votes
0 answers
What are the downsides of using $(System.DefaultWorkingDirectory) in Azure pipelines
In another post, it was mentioned that $(System.DefaultWorkingDirectory) in Azure pipelines has ill effects. I am curious what are the downsides of using this (we use these in lots of pipeline tasks for testing, downloading results and…

Kim Clausing
- 1
- 1
0
votes
1 answer
How can I add /etc/hosts entries to a container executed on an Azure Pipelines build agent
I need to backup the Git repository of an Azure API Management instance which is connected to a virtual network and has a custom domain. Hence the SCM endpoint e.g. myapiminstance.scm.azure-api.net has no valid public DNS entry and cannot be…

Kai Walter
- 3,485
- 2
- 32
- 62
0
votes
1 answer
Azure Pipelines Command Line Task: "Cannot bind argument to parameter 'LiteralPath' because it is an empty string"
I have pipeline agents installed on multiple machines and each one has a .env file, since each one has slightly different local values for the environment vars.
One of them is not working, however. The agent was installed and configured the same way…

Unstable Andy
- 91
- 8
0
votes
1 answer
What are FileTransformTaskV2 Variable substitution rules in Azure Pipelines
I have an Azure DevOps pipeline
pool:
vmImage: 'windows-latest'
variables:
System.Debug: true
one: actual-value
Two: actual-value
MappedValue: actual-value
steps:
- task: FileTransform@2
displayName: V2 - Transform
env:
…

Gurpreet
- 1,382
- 11
- 24
0
votes
1 answer
Calculate elapsed time for a task in azure pipeline using inline PowerShell tasks
I am trying to calculate the time elapsed for a task in Azure Pipeline using PowerShell task on inline mode. Simplified setup looks like in the image as attached. The inline code is mentioned below. I am getting below specified error.
Calculating…

Rajesh Swarnkar
- 601
- 1
- 6
- 18
0
votes
1 answer
How do I copy files to another root directory in Azure Devops release pipelines?
My agent is installed in C:/azagent, as it was by default after running the powershell script created for me when creating a new deployment group.
My build artifact "drop" gets placed in C:\azagent\A1\_work\r2\a\_TransactionImportTurkey-Test\drop
It…

Erik
- 13
- 3
0
votes
1 answer
error in Publish code coverage results in azure devops
I have this error in Publish code coverage results in pipeline in azure devops
Failed to generate Html report. Error: 1
can you help me plz ??
this is my Publish code coverage results sittings
Publish code coverage results sittings pic
and this is…

Rawan Aldaej
- 1
- 1
0
votes
2 answers
How to run multiple Copy Files task in a Azure DevOps Release pipeline simultaneously with Custom Conditions?
I am using Azure DevOps Server 2020 and I have a release pipeline which has around 21 copy file tasks in it to copy the output of multiple microservices to different target paths and this takes almost around 23 mins to complete the release…

SRP
- 999
- 4
- 21
- 39
0
votes
2 answers
Azure devops task AddOrUpdateUserAzure@1 failing ubuntu-latest hosted agent
Using AddOrUpdateUserAzure@1 task in Azure pipeline for Microsoft SQL Server database user creation with Microsoft-hosted agent ubuntu-latest fails with the error shown below:
- task: AddOrUpdateUserAzure@1
displayName: DB user creation
inputs:
…

Rajesh174u
- 29
- 1
- 6
0
votes
1 answer
CmdletBinding() Won't Run in Azure Pipeline Powershell Task
I have a powershell script which executes perfectly when run from a Powershell commandline. I however need to incorporate this script into an Azure Pipeline (Classic) powershell Task, but it just won't run and is persistently erroring on the…

hitman126
- 699
- 1
- 12
- 43
0
votes
1 answer
File Transform task does not work in Release pipeline for Xamarin.Forms
I am trying to deploy a Xamarin.Forms application using Azure DevOps. Before actual deployment, I need to use File Transform task to change values in a json file. I provide a path to .apk (for Android) or to .ipa (for iOS) in the "Package or folder"…

David Shochet
- 5,035
- 11
- 57
- 105