Questions tagged [azure-pipelines-tasks]

216 questions
0
votes
1 answer

Azure release syntax error with Python script task accessing the predefined variables

In azure devops I have release task run python script. Its giving me syntax error while accessing the predefined variable. SyntaxError: invalid decimal literal import requests import adal import json clientId = $(app-id) tenantId…
Delta
  • 149
  • 9
0
votes
1 answer

Azure Release Pipeline: How to pass a variable to Manual Intervention instructions?

I would like to personalize the instruction message of a Manual Intervention task in a Release Pipeline. Right now the message is very simple, as you can see: It just says "I need your intervention!". Now I would like to add a dynamic value to it,…
0
votes
0 answers

Azure DevOps: prompt users to enter a value for a parameter used during deployment

I would like to create a Release Pipeline that, after a few tasks, stops and prompts a user to enter a value, then continues. In the docs I found the exact scenario I was looking for, see the following link Unfortunately, if I read the suggested…
0
votes
3 answers

How to run a bash script with arguments in azure devops pipeline?

I've a script which works locally fine and while running the script i'm passing 2 arguments in the script and its work perfectly fine, Here's how i'm running the bash script locally: ./changeDB_connection.sh "fdevtestcuskv04" "test" But, I…
0
votes
2 answers

How to pass Json variable as inputs in Azure DevOps pipeline task

I am forming a JSON dynamically during the pipeline run based on few pipeline parameters and pre-defined environment variables and trying to pass this JSON as an input in subsequent pipeline task. jobs: - job: PayloadCreation pool:…
0
votes
1 answer

How do I recover the name of a downloaded artifact in a deployment job of Azure DevOps?

I'm building a multi-stage pipeline in which my build stage stores a single file as a pipeline artifact. In the deployment stage the artifact is automatically download and I need the name of the file in order to proceed with the following…
0
votes
2 answers

Azure pipeline fails node-gyp error at yarn install task

I am running wdio test on azurepipelines on windows agent while upgrading from Node12 to Node14 getting error in yarn install any help is appreciated
0
votes
1 answer

Cannot find the path of downloaded file in azure pipelines

I am trying to download certificate file in azure pipelines. I have declared it as a download secureFile task in one of yaml files of my pipeline. - task: DownloadSecureFile@1 name: certificateFileName displayName: 'Download file Operation' inputs: …
0
votes
1 answer

How can I restrict network access of Microsoft-hosted agents to my Azure subscription?

I have a hosted agent VM in a VNET in my Azure subscription that is supposed to do Bicep deployments to my Azure subscription. It is working well. I am noticing that Microsoft-hosted agents also can deploy resources or do updates in my Azure…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
0
votes
0 answers

Azure yaml pipeline group variables not seen by task in a template file

I have a pipeline stage that is using a template as follows: # Deploy to AKS - stage: DeployTEST displayName: Test env for my-app condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) variables: - group:…
0
votes
2 answers

Terraform Destroy does not work with Azure Devops Variables in terraform.tfvars

I have very simple pipeline, classic pipeline with Terraform Init, Plan and Apply, how ever deployment failed in middle, so I wanted to destroy all resources… (backend is remote sitting on Azure blob container so I enabled only Init and Destroy Task…
0
votes
2 answers

Not download Few Folders of Azure DevOps Repo in Azure DevOps CI Pipeline

I have Created a CI Pipeline in Azure Devops. My Repo is Azure DevOps Repo. My Repo size is big so i do NOT want some of Folders to be downloaded on agent machine as Those folders are redundant for code build. What changes i need to do in my…
0
votes
0 answers

How to get Github Labels from Pull Request - Azure Pipelines

I am trying to read Github labels from Pull Requests as I want to run certain Azure pipeline tasks only if a label bug is present on the Pull Request. Currently, I have as follows: steps: - bash: | if curl -s -H 'Authorization: '…
0
votes
0 answers

Azure Pipelines - how to choose runtime parameters from combos filled by system API calls?

When I write a YAML pipeline, I can obtain that start values are chosen from a collection of static values specified by me (provided they are at least four): Those values become available from a combo box at runtime: However, when I am composing…
Marco Faustinelli
  • 3,734
  • 5
  • 30
  • 49
0
votes
3 answers

How to set or inject an arbitrary file list of environment variables in an Azure Pipeline

I'm porting some Jenkins builds to Azure Pipelines. One of the port sets involves an arbitrary list of environment variables that constantly changes. In Jenkins I just run an injection script to run on a list file that is within the code base's…