Questions tagged [azure-devops-self-hosted-agent]

291 questions
2
votes
0 answers

VSTS Self-hosted Build Agent Xamarin build error

Trying to get our CI to build our Xamarin.Android apps, I have made a Task for this, and it builds fine the first 2 or 3 times but after that, it constantly throws errors like the one…
2
votes
2 answers

Self-Hosted Devops agent - Config launching error

I'm trying deploy self-hosted agent on my mac os machine. I downloaded agent archive and unpacked it. All attempts to run config.sh failed with an error: config.sh: line 85: ./bin/Agent.Listener: No such file or directory Have no idea where I did…
Сергей
  • 780
  • 4
  • 13
  • 31
2
votes
2 answers

How to control work folder for Azure DevOps pipeline?

Normally, if you are using a self-hosted Azure agent, it automatically selects target folders for you (I assume based on pipeline name), underneath the work folder... so for example: /home/xxxxx/azure/_work/2/t/ Is there a way that I can control…
Elliot Nelson
  • 11,371
  • 3
  • 30
  • 44
2
votes
2 answers

Azure Devops Self-hosted Agent parallel jobs

We have deployed Azure devops Self-hosted Agent in our own agentpool. We have also purchased 4 parallel job per agent , but when our build runs, it runs only one job at a time and other pipeline/release jobs have to wait. How can we run 4 parallel…
2
votes
1 answer

Maven Errror Could not transfer artifact org.apache.maven.plugins:maven-source-plugin:pom:3.0.1 from/to central

I am trying to compile my code using maven, getting below error, Environment i am using azure devops server and using build pipeline Maven Errror Could not transfer artifact org.apache.maven.plugins:maven-source-plugin:pom:3.0.1 from/to…
2
votes
2 answers

Azure DevOps Pipeline for Java Project with self hosted agent

We are having a set of Java Projects which were developed using different JDK versions, different versions of Gradle and Maven were used in projects. We are supposed to create a Azure DevOps Pipeline using Self Hosted Agent and as of now build agent…
VKD
  • 633
  • 2
  • 12
  • 28
2
votes
2 answers

Azure DevOps YAML build fail when running container jobs on self hosted agent

I'm trying to run a container job on my self hosted agent to read a container image from my ACR. When you use a Microsoft hosted agent this code works: pool: vmImage: 'ubuntu-18.04' container: image: myprivate.azurecr.io/windowsservercore:1803 …
2
votes
0 answers

Azure mac hosted agent : Acquiring an agent from the cloud: Request queue position information is unavailable

i just notices that even though i have a pool of 10 hosted agent in azure which are free and idle I'm waiting a long time to execute the build job and I see this msg for a long period of time: Acquiring an agent from the cloud: Request queue…
2
votes
1 answer

Azure DevOps hosted-agent failed to pull windows:2004

When using Windows-2019 hosted agent (Agent installed with 1809 windows version -Microsoft Windows Server 2019 Datacenter) as Agent Specification, We can't pull mcr.microsoft.com/windows:2004 docker image. Exception: I'm familiar with this solution…
Amit Baranes
  • 7,398
  • 2
  • 31
  • 53
2
votes
4 answers

Avoid git clean with Azure Devops self-hosted Build Agent

I have a YAML build script in an Azure hosted git repository which gets triggered across 7 build agents running on a local VM. Every time this runs, the build performs a git clean which takes a significant amount of time due to a large node_modules…
2
votes
1 answer

DevOps pipeline on self-hosted MacOS agent fails on NuGet package restore but works on Azure Pipeline

I faced a problem with running a DevOps pipeline on self-hosted MacOS (Catalina) build agent and it fails on the step NuGet Package Restore. The same step is successful when run on Azure Pipeline agent. The error is: Unable to locate executable…
2
votes
2 answers

Can YAML Pipeline detect cloud vs Self-Hosted build?

Is it possible to determine within a single YAML Pipeline whether the agent is running self-hosted or in a cloud build? If so, how would one go about determining that? I need my pipeline to work in both locations but certain steps must only occur…
2
votes
1 answer

Azure Devops pipelines - submodules not get updated by default

In Azure devops pipelines submodules are not getting updated by default. To reproduce the problem. Source Code https://github.com/forvaidya/submodule.git https://github.com/forvaidya/supermodule.git Updates doesn't happen unless I have following…
forvaidya
  • 3,041
  • 3
  • 26
  • 33
2
votes
2 answers

Self hosted azure agent - how to configure pipelines to share the same build folder

We have a self-hosted build agent on an on-prem server. We typically have a large codebase, and in the past followed this mechanism with TFS2013 build agents: Daily check-ins were built to c:\work\tfs\ (taking about 5 minutes) Each night a batch…
GilesDMiddleton
  • 2,279
  • 22
  • 31
2
votes
0 answers

Azure Agent config setup error WinHttp Error: ERROR_WINHTTP_TIMEOUT

Getting "WinHttp Error: ERROR_WINHTTP_TIMEOUT" error when config.cmd is run in corporate network over VPN. This worked fine last week, but this week it stopped working. Error log is here 2020-04-22 22:33:37Z ERR VisualStudioServices] Attempt 4 of…
Girish
  • 171
  • 2
  • 9