Raq
Raq

Reputation: 453

How to update a system capability in a build agent in vsts?

I want to upgrade 'java_home' capability in my build agent to jdk8 as this is required to integrate 'Sonarqube Analysis' in my CI build . How can I update the same in vsts ?
I would like to either change the path for java_home (but that seems uneditable in vsts) to one with jdk8 or upgrade the java under current folder only. vsts agent

Upvotes: 8

Views: 19226

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16133

I think, you should update JAVA_HOME environment variable on your CI build machine and restart your build agent. Capabilities will be updated automatically: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops#capabilities

The agent software automatically determines various system capabilities such as the name of the machine, type of operating system, and versions of certain software installed on the machine. Also, environment variables defined in the machine automatically appear in the list of system capabilities.

Upvotes: 12

Related Questions