We are trying to upgrade Java and have modified pom.xml to use the new version in source and target for the build. Jenkins job is currently failing with error:
Fatal error compiling: invalid target release: 11.
We have multiple release branches being developed in parallel. Most of them are still using old Java and should be built with older version. Only for one release branch we want the new Java version. Is it possible to configure Jenkins in such a way?
My understanding is Jenkins JAVA HOME need to be updated to match the target version.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…