Questions tagged [azure-pipelines-tasks]

216 questions
3
votes
1 answer

Azdo custom task extension definition of string input with a regular expression doesn't work

I have an Azure custom task implemented with Typescript with a task.json containing a string input which is supposed to get a semantic version: { "name": "version", "type": "string", "required": true, "label": "Version", "defaultValue":…
3
votes
1 answer

Overwriting a file in Azure blob storage using the AzureFileCopy task

In Azure Pipelines, we can upload a file to blob storage using the following task: - task: AzureFileCopy@4 inputs: SourcePath: 'MyInstaller.tar.gz' azureSubscription: 'Azure subscription 1(qwerty)' Destination: 'AzureBlob' storage:…
3
votes
2 answers

Azure DevOps agent not picking up yml based jobs

So I'm using Azure DevOps Server 2020 Update 1 and self-hosted agents on Linux. I'm desperately trying to get my agent to pick up my jobs but it won't. It's not busy, no capability issues (test pipeline with only a single "hello world"-style inline…
3
votes
0 answers

Share azure pipeline task 'env' across multiple tasks

I have 2 pipelines that call code from the same repository. 1 pipeline calls console applications and the other pipeline calls automation tests. Both tasks require the same env to be set. Right now my yamls look like this: - task: DotNetCoreCLI@2 …
3
votes
2 answers

Get feature branch name in Azure Pipelines

trying to build an Android project, gradle checkout the specific branch that was triggered by Azure DevOps and build the package. After task finish Azure Pipelines checkout to HEAD. As a result, in the next task when i get branch name/tag, doesn't…
3
votes
1 answer

Overriding DotNet Core test run parameters from a YAML pipeline task

I have a couple of integration tests which use connection strings. The test is run from an azure devops pipeline, with yaml definition (DotNetCoreCLI@2 task) This connstrings used to be set in the .runsettings file, but I would rather they were…
3
votes
1 answer

Azure Pipeline Matrix Strategy Variable Expansion problem in conjunction with templates

For often used tasks in azp I created an own repository with a yml file, I'll show you a subpart of that: create-and-upload-docu.yml: parameters: - name: Documentation type: string default: '' - name: Language type: string default: '' -…
3
votes
2 answers

Unable to download secure files conditionally in Azure Pipelines

Question I am using DownloadSecureFile@1 task to download Secure files. The issue occurs when in Azure DevOps, in the Library's secure files section, only file_A.txt exists. The script works fine when both files exists. In my case, a user A will…
Piys
  • 33
  • 1
  • 3
3
votes
3 answers

How to specify triggers using variables in Azure DevOps Services pipeline yaml

The following azure pipeline code gives error 'A template expression is not allowed in this context' variables: major: 2020 minor: 3 patch: 1 major_minor_patch: $(major).$(minor).$(patch) trigger: - master - Dev -…
Chubsdad
  • 24,777
  • 4
  • 73
  • 129
3
votes
2 answers

Run CURL GET commands in Azure Pipeline Task

I am looking to run some CURL commands (GET mainly) in an Azure Pipeline Task to list/download some artifacts from a few sources. Would appreciate some help with any examples of how I can achieve this through a Pipeline Task using CURL, Powershell,…
3
votes
1 answer

Azure DevOps: How to make use Environments in Pipelines using classic editor?

I am new to Azure DevOps and would like to use Environments in my Azure DevOps pipeline. I have seen examples online on regarding how to configure Environments in the yml file (Azure pipeliens.yml) if you are using the yaml editor. However, I am…
3
votes
1 answer

Downloading latest Pipeline Artifact from branch based on Tag

I am trying to download the latest available artifact for a given tag from the current build pipeline and branch, but I am getting the following error. ##[error]No builds currently exist in the pipeline definition supplied. This is a 3 stage…
3
votes
1 answer

Issue with Flutter commands from CI/CD pipelines

Hello recently I upgraded my Mac mini from Mojave to Catalina (10.15.4) for new Xcode. Before updating my CI/CD pipeline used to work fine. My CI/CD pipeline is based on Azure. (I use my Machine as a build machine). After updating to latest OS…
3
votes
1 answer

How can I set the preferred powershell version in an Azure Devops Pipeline Task?

I have a Azure Devops Pipeline $PIPELINE with a task group $TASKGROUP, and one of the actions in that task group is a powershell task $TASK ( a powershell task, not a AzureCloudPowerShellDeployment task or AzurePowershell task, which are different…
3
votes
1 answer

How to get multi container application's URL from Docker Compose Task in Azure Pipeline?

I've configured multi container using Docker Compose Task in Azure Pipeline. I could not able to get URL for the multi container application. Do I need to configure the app service along with the docker compose task? Please guide!!! UPDATE In…
1
2
3
14 15