Questions tagged [azure-pipelines-tasks]
216 questions
2
votes
1 answer
Cannot save output from npm task in Azure Pipelines release
I have added a npm-step in my release-pipeline to get currently latest package version for a beta build like this:
- task: Npm@1
displayName: 'Get current published beta-version'
inputs:
command: custom
workingDir: ./packages/package
…

andMarkus
- 960
- 1
- 8
- 16
2
votes
2 answers
Is there a way to dynamically assign names to tasks in yaml pipelines for Azure Devops?
I am using the DownloadPipelineArtifact@2 task and looping over an array of pipelines to download the artifacts for each of them. I would like to use the $(BuildNumber) output of each of these tasks in subsequent tasks.
${{ each p in pipelines }}:
…

Muneeb
- 151
- 2
- 5
2
votes
1 answer
Azure pipline Log adding message form C# in a run task
I would like to know if it is possible to log a message from C# code in the [azure pipeline log window (below) while using a run task. I need to print some variables that I can only get if my functions are executed in Azure in order to debug.

Mostefa Kamal Lala
- 23
- 5
2
votes
1 answer
Markdown in Azure Pipelines Summary File
I have a task in my pipeline that uploads some markdown with a summary
##vso[task.uploadsummary]c:\testsummary.md
The markdown looks like this
Summary
======
- Created resources: 0
- Deleted resources: 0
- Updated resources: 0
- Unchanged…

Jeff
- 35,755
- 15
- 108
- 220
2
votes
1 answer
what is the @ + number means for task name
I found many task names are end up with @ sign plus a number, please see example below
# Provides credentials for Azure Artifacts feeds and external Maven repositories.
- task: MavenAuthenticate@0
#inputs:
#artifactsFeeds: MyFeedInOrg1,…

SLN
- 4,772
- 2
- 38
- 79
2
votes
2 answers
Task Control Option - Custom Condition - run task when previous failed or timed out
Is there an option to set the custom condition that will test if the previous task has failed OR timed out?
Currently, I'm using the Only when a previous task has failed which works when the task fails. If the task times out, then it is not…

Lukasz 'Severiaan' Grela
- 6,078
- 7
- 43
- 79
2
votes
1 answer
Glob pattern in Azure Pipelines to exclude map files and asset folder
I'm trying to use an "Amazon S3 Upload" task in Azure Pipelines to upload all my website files except anything in my "assets" folder and except my JS map files. The glob pattern I tried using is
**/!(assets|*.map)
But my assets folder is still…

adam0101
- 29,096
- 21
- 96
- 174
2
votes
2 answers
Use a variable name that is stored in another variable in Azure Pipelines
I'm using the AzureKeyVault task to retrieve a secret from the Key Vault. The name of the secret is StorageAccountKey. This name is stored in the variable KeyName. I do it like that
- task: AzureKeyVault@1
displayName: 'Get key'
name: GetKey
…

Konstantin
- 2,451
- 1
- 24
- 26
2
votes
1 answer
What are the ways in which one can communicate error to the azure pipeline via powershell?
Assuming I am using a Powershell script task to perform some complex things, I want to let the azure pipeline know about the errors.
I know that using exit(0) is success and any non zero exit is a failure which will cause the azure pipeline task to…

variable
- 8,262
- 9
- 95
- 215
2
votes
2 answers
I have a build pipeline in Azure DevOps for my github repo - where are the binaries?
Here is the (unedited from template) YAML definition of the pipeline:
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
#…

ekolis
- 6,270
- 12
- 50
- 101
2
votes
0 answers
Send Email notification when build failed azure pipeline
I want to send Email when my azure pipeline build failed.
Now the requirement is I want to send Email multiple to address which should set from environment address i.e to address and mail subject will be dynamic.And mail body will contains error log…

qwerty
- 80
- 6
1
vote
1 answer
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 main thing here):
{
"name": "boolInput",
…

CodeMonkey
- 11,196
- 30
- 112
- 203
1
vote
1 answer
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
The build is successful when I push the repo to…

Manoxs
- 25
- 2
- 8
1
vote
1 answer
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
#…

SeleniumUser
- 4,065
- 2
- 7
- 30
1
vote
1 answer
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 azure pipeline this error appears. user has all…

Muha-mmad
- 33
- 4