Questions tagged [azure-pipelines-tasks]
216 questions
1
vote
1 answer
Azure Pipelines Task - How to dynamically populate a pickList input with a source other than a service endpoint?
In the link to the custom task, below, you'll see several pickList fields; one for the service endpoint, two for environment and command, which are static lists in the task.json, and then a fourth. This one, I need to be populated with a list of…

Paul Carlucci
- 13
- 2
1
vote
1 answer
Push to docker repository fail on AzurePipelines
The task Docker push fail to push the image into docker hub.
The yml:
steps:
- task: Docker@0
displayName: 'Push an image'
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryConnection: 'docker hub'
action: 'Push an…

MiguelSlv
- 14,067
- 15
- 102
- 169
1
vote
0 answers
spawnSync error and can\'t find loc string warning with ContainerStructureTest@0 task of azure-pipeline
After building a docker image, I am trying to test its functionality using ContainerStructureTest@0 from azure-devops.
I have a pipeline and test configFile.
Firstly, it gives the following warning:
##[warning]Can\'t find loc string for key:…

tash
- 711
- 5
- 13
1
vote
1 answer
Using Build.ArtifactStagingDirectory and PublishPipelineArtifact in a Matrix Build
My Azure Pipelines build outputs NuGet packages in the /home/vsts/work/1/Windows folder where Windows is a matrix name (I'm running the build section of my pipeline on Windows, Mac and Linux but want to publish the NuGet packages only from my…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
1
vote
1 answer
Unexpected token function when executing custom Azure DevOps Pipeline Task
The custom Azure pipeline task that has the issue can be found here and has been created by following this tutorial. The task tests are working without any issue, so the task is actually running and calling my external package dependency.
After…

emp
- 4,926
- 2
- 38
- 50
0
votes
0 answers
500 error when calling Devops Pipeline runs api via REST API call from another pipeline
In my Azure Devops Pipeline, I'm using InvokeRESTAPI@1 to trigger another Devops Pipeline by POSTing to the pipeline run endpoint documented here.
This used to work, but as of August 4 2023 I'm getting a 500 error when this pipeline runs. I can…

Rachel
- 686
- 1
- 6
- 18
0
votes
1 answer
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 defined in the variable group yet, what does it…

Douglas Young
- 86
- 8
0
votes
0 answers
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@2 and AzurePowershell@2, without errors. When I…

Alejandro
- 1
- 1
0
votes
1 answer
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 pipeline Variable Group as below
Actually the…

Shekhar Khadka
- 43
- 7
0
votes
1 answer
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 import errors. for e.g.
Am I wrong in my assumption…

user3742631
- 123
- 1
- 5
0
votes
0 answers
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 is the name of a database that is written with a special…

wil-qua
- 1
- 1
0
votes
1 answer
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
timeoutInMinutes: 1440 # task times out in 1…

user3067684
- 936
- 9
- 18
0
votes
0 answers
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'
versionCodeOption: 'buildid'
versionCode:…

Maulik Dave
- 81
- 9
0
votes
1 answer
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: |
pwd
ls -larth
cd infra/
…

learner
- 2,480
- 10
- 50
- 94
0
votes
2 answers
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 argument(s)
basically this code wants to check what is…

RubenSo
- 33
- 9