Questions tagged [azure-devops-hosted-agent]

65 questions
2
votes
0 answers

Azure Devops Microsoft-hosted Ubuntu agent integration tests fail to call Docker Rest Api

We have a problem with Azure pipeline. Inside pipeline we are running integration tests, those tests interacts with Docker Rest API to run specific containers (we are using Docker.DotNet for that). Everything works on on-premise hosted build agent,…
2
votes
2 answers

Explore file system on hosted agent

I have an Azure DevOps build that fails with an error that no files are found in a particular folder. If this build had run on-prem I would logon to the build server and explore the files and folder structure created by the build, in order to figure…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
2
votes
0 answers

Error authenticating with Fortify on Demand. Error: Error: unable to verify the first certificate

I am trying to do automate build with fortify on demand extension embedded using Azure DevOps. The fortify task is throwing the error below - during the build [section]Starting: Run Fortify on Demand static assessment on Devops - …
Renji
  • 391
  • 2
  • 7
  • 20
2
votes
1 answer

Azure Powershell - Az module not working on Ubuntu hosted build agent

I have a build running in Azure DevOps, on an Ubuntu 16.04 hosted build agent. I'm using the latest version of the "Azure Powershell" task (version 4.* preview), which is supposed to be multi-platform, support Powershell core, and support using the…
crimbo
  • 10,308
  • 8
  • 51
  • 55
2
votes
3 answers

How do I preinstall certain tools onto a Hosted Agent?

By default, the Hosted Agent I'm working with is not supporting yarn command but only npm. Sad, right? Of course, I could have a step in my build pipeline that downloads and installs yarn via scoop or choco[latey] on each run, but I really don't…
Igor Soloydenko
  • 11,067
  • 11
  • 47
  • 90
2
votes
2 answers

How do I pass preprocessor macro name in xcode build command?

I am doing CI build on azure devops. I am wondering how to pass pre-processor macro value so that I can make different flavours of build. AFAIK if we can set preprocessor macro in xcode build then we can do it on azure devops as well. Any helpful…
Shiva
  • 545
  • 1
  • 10
  • 41
2
votes
1 answer

Using docker image with database or LocalDB for integration tests in Azure DevOps

I'm currently investigating how to best implement integration tests. We use C# to build Azure Functions and have unit-tests in-place (runs as part of the build in Azure DevOps). Next step is to include integration tests for integrating with MS SQL…
Casper
  • 1,051
  • 1
  • 8
  • 21
1
vote
1 answer

Intermittent WebDriverException when running Winappdriver/appium Automation test in MS Hosted Agent ('windows-2022')

Brief background: Automating a winform application using WInAppDriver/Appium. Using Specflow's BDD to define tests At every start of test the automation test will always check if App is open already, if not, then fire-up/initialised application -…
1
vote
1 answer

Cache NodeJS tool in DevOps

Is it possible to use Cache with the NodeTool task on order to skip downloading a specific version of tools and use a version shared across multiple pipelines? Right now NodeTool task occasionally fails to download the tool which causes…
AaronLS
  • 37,329
  • 20
  • 143
  • 202
1
vote
1 answer

Azure DevOps Hosted Agent: The 'SQLNCLI11.1' provider is not registered on the local machine error

we were recently using the agent configuration 'vs2017-win2016' to run our automated tests in Azure DevOps. However, we've had to upgrade to the configuration 'windows-latest' recently due to this being deprecated, and we've suddenly started getting…
benm912
  • 77
  • 1
  • 7
1
vote
0 answers

All Specflow scenarios being skipped in VSTest task on DevOps Pipeline

I've configured a DevOps pipeline to execute my SpecFlow Selenium tests. Everything appears to work fine, except that all my test scenarios are skipped on the DevOps agent. When I run the tests locally, using VS2019 test explorer, they run without…
1
vote
1 answer

Azure DevOps Windows vs Ubuntu hosted agents for cross-platform apps?

Are there concrete reasons to select one agent OS over another for cross-platform apps? I see the choice frequently being made based on the developer's OS preference. I created a .net core console app this morning and a pipeline to build it against…
JDH
  • 2,618
  • 5
  • 38
  • 48
1
vote
2 answers

Azure Pipelines - Clone or Copy Hosted Agent

Is it possible to clone or copy an Azure Pipeline Hosted Agent for use as a Self-Hosted Agent? I'd like to reuse one of the Hosted Agents simply to enable me recreate and reuse all of its capabilities, saving me the headache. Is this possible and if…
hitman126
  • 699
  • 1
  • 12
  • 43
1
vote
1 answer

How to read system defined capabilities for an agent in a tfs

I want to read my Msbuild path from my self hosted build agent as system defined capabilities, is there any way out to do so ?
1
vote
1 answer

how does Microsoft hosted agent relate to vmImage types?

I am a free tier user of Azure DevOps, as indicated in https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent, each user is entitled to 10 parallel jobs. when i login to see the…
sqr
  • 365
  • 2
  • 12
  • 29