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.
Right-click on the agent pool that you want to update. Choose Update All Agents from the context menu.
Yes you can run multiple agents in a single VM. Make two directories say Agent1 and Agent2, extract the agent in each one of them and configure them with different names against your VSTS/TFS account. It should work out of the box.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With