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

291 questions
1
vote
3 answers

API to delete multiple offline agents from Azure DevOps

Our Azure DevOps build agents are setup on Kubernetes. Failed pods can easily be deleted from kube, but they appear as "offline" agents from the Azure DevOps Web UI. Overtime the list of offline agents has grown really long. Is there a way to…
1
vote
0 answers

vsts self hosted/on-premises agent become offline while deploying application

I am new to DevOps and having a difficulty deploying an application. I have created a Release in VSTS and added my Latest Build and Latest Code in the Artifiacts section. In the stages area, I have created a one stage and it contains few tasks: 1.…
1
vote
1 answer

Azure Devops - How to restrict custom build task to run only on a self hosted agent?

In Azure Devops, how to identify a self hosted agent from existing agents. I would like my custom build task to be allowed to execute in self hosted agent only.
1
vote
1 answer

Azure DevOps Hosted Agents - Add Tool (PS Module) to agent

I am wondering if there is an easy way to incorporate an extra tool to one of the default Microsoft hosted agent pools (specifically VS2017). Basically, I want to add some of the extra ARM powershell modules that are not installed by default as only…
1
vote
1 answer

How to monitor VSTS agent availability

We have multiple on-site build agents attached to our VSTS instance, and would like to implement monitor their availability. That is, not just that their services are running, but also that they can connect to VSTS, since we have had some issues…
0
votes
1 answer

Reducing Storage Usage of Azure Self-Hosted Agent on Server: How to Free Up Space?

I have installed my Azure self-hosted agent on a server that is consuming a lot of space. The '_work' folder is taking up the most space, and within this folder, we have the following subfolders: 1)How can I reduce that space on the…
0
votes
0 answers

Failed to read NuGet.Config due to unauthorized access - Azure Devops self hosted linux agent

Azure Devops Taks: - task: NuGetCommand@2 displayName: "Nuget push" condition: ne(variables['Build.Reason'], 'PullRequest') inputs: command: 'push' packagesToPush:…
0
votes
0 answers

Downloading Secure File in Azure DevOps is returning "unable to verify the first certificate error"

I am trying to add the a "DownloadSecureFile@1" task in YAML script in Azure DevOps Server that will run on a self-hosted agent in LINUX server. This is the task added: task: DownloadSecureFile@1 name: envconfig displayName: 'Copy env config…
0
votes
0 answers

Docker build error thrown in Self Hosted VMSS agent

I am running a Azure DevOps build through a self hosted VMSS agent pool. The stand-by vms is 0, so when I trigger a build, it creates a VM. The VMSS agent installs docker with a cloud-init script. The contents of it is as…
0
votes
0 answers

Error downloading Task from Self-Hosted Windows machine

When I run my pipeline from my agent v3.x.x in a self-hosted windows machine, I get the following error when trying to download task AzureKeyVault@2. However, it allows downloading tasks as Powershell@2 and AzurePowershell@2, without errors. When I…
0
votes
0 answers

ADO pipeline self-hosted: run some steps as admin and others as non-admin

I need some steps of my Azure DevOps Pipeline to run as admin on the machine (e.g. to configure the build tools), and others to run as non-admin (e.g. to run unit tests that make sure perms are handled correctly by my code). All I know how to do is…
0
votes
1 answer

Azure DevOps pipeline - Docker failed to push image to Azure Container Registry

I have created a "Docker - Build and push an image to Azure Container Registry" pipeline. I have selected the Azure subscription and the docker registry. After that, a docker registry service connection is made during the pipeline creation. Next, I…
0
votes
0 answers

Azure DevOps SHA Database Build fails w Error MSB4061 SqlModelResolutionTask could not be instantiated from Microsoft.Data.Tools.Schema.Tasks.Sql.dll

My yaml file trigger: - main steps: - task: VSBuild@1 displayName: 'VS Build on the Solution' inputs: solution: 'My.Database.sln' vsVersion: '17.0' platform: 'any cpu' configuration: 'Release' Despite using a VSBuild step, it…
0
votes
1 answer

How to access user-defined capabilities in yaml pipeline?

Given a user-defined capabilities in some of the self-hosted agent, for example: Name: InHouse.BuildTools Value: C:\Program Files (x86)\Build Tools\builder.exe In the yaml pipeline, how to execute 'C:\Program Files (x86)\Build Tools\builder.exe' by…
Pok
  • 1,521
  • 1
  • 13
  • 20
0
votes
1 answer

Selfhosted agents do not receive the values of environment variables

I set the environment variable "NODE_TLS_REJECT_UNAUTHORIZED=0" in my linux environment because I need to set this variable in a Selfhosted agent. When the agent is created and the installation is done (sudo ./svc.sh install username), the variable…