Azure DevOps hosted build "java" demanded capability not present

sonarqube
scanner
vsts

(Dave Skender) #1

Hard-coded Azure DevOps build agent demand capability for “java” doesn’t exist on hosted agents or where using OpenJDK, preventing build from starting. Given that Oracle is now charging license fees for their Java, nobody want to install that anymore (Microsoft does not either). OpenJDK is referenced in the JAVA_HOME capability instead. Suggest changing forced demand from “java” to “JAVA_HOME”.

All you need to do is approve this Pull Request:


(Dave Skender) #2

So, I just realized that Linux build servers typically list the ‘java’ capability instead of ‘JAVA_HOME’ which is typical for Windows build servers. I wonder if there is a way to have an “OR” condition on demand? Maybe its better to just remove the demand all together?