Questions tagged [azure-pipelines-tasks]
216 questions
0
votes
1 answer
How can I pass a gate output value from an agentless job -> agent job?
I am using the official Microsoft ServiceNow plugin in a gate to create tickets via Azure Pipelines.
Once the gate is finished processing, there is an output that I'd like to consume in an agent job. The problem is that this output is only available…

mmuso
- 11
- 3
0
votes
1 answer
Azure pipeline restore and pack
I am a bit stuck in here and might need some help to understand this process with azure pipeline.
I have this pipeline:
steps:
- task: DotNetCoreCLI@2
displayName: 'DotNet - Restore'
inputs:
command: 'restore'
projects: '**/*.csproj'
…

Nayden Van
- 1,133
- 1
- 23
- 70
0
votes
2 answers
Azure pipeline YAML: assign variable to another variable
I want to define variable version_ that consists of other my variables, like this:
but variables major, minor, versionCounter and branchPrefix aren't recognized, and this syntax is just transformed into string
I tried to use $(major) syntax, but it…

Andrii Dusheba
- 11
- 2
0
votes
1 answer
How to store result of a AWS CLI command in Classic Azure DevOps Pipeline
I have a AWS CLI task (create-upload) that when run, returns with a json result that contains an URL. This task works fine.
I however need to use the URL from that create-upload task in the next task (upload-file).
Inside that create-upload task…

pnizzle
- 6,243
- 4
- 52
- 81
0
votes
1 answer
Cannot set content-type in header for azure pipelines task
I am building azure pipeline task which is calling an endpoint. However I keep getting error "unsupportedmediatype 415". here is my code
"dataSources": [
{
"name": "ProjectsEP",
"endpointUrl":…

Rohit
- 10,056
- 7
- 50
- 82
0
votes
1 answer
Azure DevOps Variable Groups Password not working
I'm having userName and passWord field in my Azure DevOps Variable group, and I would like to pass the userName and passWord to my python script as a command line argument, I'm able to get the userName without any issue but passWord is not coming…

Dave Brady
- 193
- 9
0
votes
1 answer
Getting Django env vars into Azure Pipelines for running unit tests
I've tried a few ways of doing this and every time the step fails saying:
...
File "/home/vsts/work/1/s/api/config/settings.py", line 23, in
SECRET_KEY = os.environ['DJANGO_SECRET_KEY']
File…

cjones
- 8,384
- 17
- 81
- 175
0
votes
1 answer
Azure pipeline custom task with an unknown number of inputs
I am creating a custom task for Azure pipeline using TypeScript.
I have defined a filePath input:
{
"name": "myFile",
"label": "file to read",
"type": "filePath",
"required": true,
"groupName": "files",
"helpMarkDown": "file…

CodeMonkey
- 11,196
- 30
- 112
- 203
0
votes
1 answer
How to configure condition based pipeline | Azure Pipeline
I have come across a scenario where I want to build source code dependant upon the source directory.
I have 2 languages in the same git repository (dotnet & Python).
I wanted to build the source code using single Azure Pipelines
If the commit is…

Eddie
- 581
- 3
- 11
- 20
0
votes
2 answers
Azure Pipeline - Transform identical key in multiple json files
I can't seem to find any documentation or information on how to transform a key that exists in multiple files. The File Transform task seems to only support the transformation of unique keys. The windows web app i have setup is an OrchardCore CMS…

Overide
- 1
- 2
0
votes
1 answer
Azure Pipeline - Passing Variables between tasks
All,
I have the below Azure DevOps pipeline setup that copy keyvault secrets from one KV to another. As you can see, I have two tasks: 1) one to read the secrets and 2) one to write the secrets. I am having difficulties figuring out how to pass…

Ultra GC
- 311
- 4
- 15
0
votes
1 answer
VSTS Task that changes project files and checks in the changes
With TFS 2015, we had made a vNext (VSTS) task that would find a selected file, substitute a token (version number is where it started,) wrote out the changes to the file, and checked the file in with a comment as to the nature of the change. It did…

Kent
- 33
- 7
0
votes
1 answer
Azure DevOps pipelines VS Test failures. All those unit tests are passing locally
I have a .Net framework 4.7.1 solution with two projects. In that one is for unit tests. Those unit tests are running successfully in local but not running in Azure Pipelines.
Pipeline:
Pipeline
YAML Below,
#Your build pipeline references an…

Code Freaker
- 1
- 1
0
votes
1 answer
How to find a directory on code running on Azure pipeline on MS agent
I have a Visual Studio c# project with the following structure:
SolutionFolder
|-Folder1
|- Project1
|- TestProject1
|-Folder2
|- Project2
|- TestProject2
|-TaskFolder
|-file
...etc
One of the pipeline Tasks…

wdiaz03
- 1
- 1
0
votes
1 answer
Stop Azure Pipeline AWS ECR Push task removing forward slash from repository name
I am trying to push images from my Azure Pipeline to an AWS ECR containing a forward slash but the pipeline keeps failing as the ECR task seems to be removing the additional forward slash.
My pipeline contains the following:
- task: ECRPushImage@1
…

Simply Ged
- 8,250
- 11
- 32
- 40