Cobertura is a maven plugin for test reporting. Cobertura is going to be
abandoned in terms of supporting Java versions >= 8. In order to natively
support Java 11 a different maven plugin was already used in the Jenkinsfile,
Jacoco. Jacoco is supports Java 11 out of the box. Only the already used
version needed a small upgrade to work.
Additionally, some runtime libraries are no longer bundled with Java 11
(like com.sun.* or Java EE libraries). These dependencies are now added
as explicit dependencies in the pom file.
Occurs in Jenkins ver. 2.73.3 and Pipeline: Groovy Plugin 2.42.
java.lang.NullPointerException
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyCallSiteSelector.isVarArgsMethod(GroovyCallSiteSelector.java:231)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyCallSiteSelector.findMatchingMethod(GroovyCallSiteSelector.java:200)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyCallSiteSelector.staticMethod(GroovyCallSiteSelector.java:193)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onStaticCall(SandboxInterceptor.java:153)
at org.kohsuke.groovy.sandbox.impl.Checker$2.call(Checker.java:186)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedStaticCall(Checker.java:190)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:97)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at WorkflowScript.run(WorkflowScript:42)
at ___cps.transform___(Native Method)
Makes pipeline less dependent to its environment. No longer needs a preconfigured slave an a host to deploy the petclinic to via SSH. The demo content can now be used on more environments.
The fact that it was still there on the classpath means it needs to
be configured (and fails silently if you don't). Removed to give
us some tmie to reconsider.