Questions tagged [azure-pipelines-tasks]
216 questions
0
votes
1 answer
Pass value from hashtable to a Azure DevOps YAML scheduled task
I have a scheduled yaml pipeline. 2 Tasks to execute.1st task is to create a hashtable which is combination of subscription and array of resourcegroups. 2nd Task is to call another template using one subscription and one rg from 1st task. Code is…

learner
- 223
- 3
- 19
0
votes
1 answer
Publishing remote test results to my Azure DevOps pipeline
I have a nodejs web application that I build in Azure Pipelines. I am planning to deploy the generated artifacts on a Azure VM (probably a dev test labs), as part of one of the pipeline steps.
I want to now run browser tests by pointing the browser…

Chubsdad
- 24,777
- 4
- 73
- 129
0
votes
1 answer
Azure Release Pipeline - Only run agent job if VM is available
I would like to create an agent job task in an Azure Release Pipeline, which will only run if the affected VM is up and running.
I had a peek into the 'Azure Pipeline Conditions', but it seems there is no such thing as 'checking for server…

Tofuburger
- 80
- 1
- 6
0
votes
1 answer
Azure Pipeline Task inputs won't accept variables
In the azure pipeline yaml files, the variable imgRepoName is trimmed from the gitRepoName. An bash echo for gitRepoName shown core/cqb-api; bash echo for imgRepoName shown cqb-api
variables:
vmImageName: 'ubuntu-18.04'
gitRepoName:…

SLN
- 4,772
- 2
- 38
- 79
0
votes
1 answer
No podspec found for `RNPDF` in `../node_modules/react-native-view-pdf`
I am creating Azure build pipeline for react native app and in that while installing pods using cocoapod task that is:
- task: CocoaPods@0
inputs:
forceRepoUpdate: true
projectDirectory: '$(system.defaultWorkingDirectory)/ios'
…

Rishav Singh
- 143
- 1
- 3
- 14
0
votes
1 answer
How to replace json config values before Xamarin iOS and Android build task in pipeline
I'm working on a Xamarin.Forms app for both iOS and Android, in the shared project I have an appsettings.json file where I'm placing some base settings keys/values.
Those key's values I want to be replaced depending on config variables I have in the…

Anon Dev
- 1,361
- 3
- 14
- 29
0
votes
2 answers
Error on PowerShell task in Azure DevOps: The term 'powershell.exe' is not recognized as the name
I'm following this tutorial to automate the creation of release notes using the wiki in Azure DevOps. Steps are very basic and there are not many variables that I believe would cause the error.
When I create a release it runs and then fails at the…

Carike
- 17
- 2
- 8
0
votes
1 answer
Pass values between template jobs in azure pipelines yaml
I have the following setup where the first templated job (deploy-infra.yml) runs some terraform jobs which produce some output which are needed in later templated jobs, what I can seem to do is pass this output to other templated jobs, this seems to…

mattb
- 384
- 1
- 4
- 24
0
votes
1 answer
Azure Devops Pipeline Test step fails - incorrect path to data files
I have a Repo containing three solutions. Each solution has multiple projects, many of which are shared (including test projects).
I have a build pipeline along the following lines
Retrieve NuGet packages
Build Solution 1
Build Solution 2
Build…

DrGriff
- 4,394
- 9
- 43
- 92
0
votes
1 answer
General timeout argument in azure pipelines
I know how to set a timeout for a specific job in Azure Pipelines. (Jobs documentation here)
Can I set a global definition that will apply to all jobs in that YAML, or do I have to set each one explicitly?

yuvalm2
- 866
- 2
- 10
- 27
0
votes
1 answer
Azure DevOps Pipeline ArchiveFiles creates empty archive from build folder
I've set up an Azure DevOps build pipeline. Everything is working fine, except for the ArchiveFiles step that should generate the artifact to be published to Azure afterwards.
I'm using the following YAML configuration:
- script: |
call…

Philipp Winter
- 21
- 2
- 6
0
votes
1 answer
Do we need to set 'isOutput=true' to use variables as task inputs to tasks within the same job?
I am reading this article: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch#set-in-script
The Powershell script example shown here:…

variable
- 8,262
- 9
- 95
- 215
0
votes
0 answers
Python - error on azure python script task - ##[error]C:\ProgramData\Anaconda3\python.exe failed with return code: 0
Code in azure python script task:
import unittest
class MySampleTests(unittest.TestCase):
def test_for_200_code(self):
self.assertEqual(200, 200)
if __name__ == '__main__':
unittest.main()
If I enable 'Fail on standard error',…

variable
- 8,262
- 9
- 95
- 215
0
votes
2 answers
How to use secret task variables with npm tasks
I've defined Variable Group which downloads secrets from Key Vault.
Looks like that unlike other variables, secrets aren't set automatically as environment variables.
I've tried using a bash script to take those 'task variables' and set them as…

SagiLow
- 5,721
- 9
- 60
- 115
0
votes
1 answer
Archive source folder contents not the folder in azure build pipeline
i am using azure-pipelines to create a build of my react app and then to deploy it to azure app-service now when i build the app all the required contents go it "/build" folder which then i archive and publish to build artifacts with the…

Abhay Garg
- 139
- 7