Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43569

groovy.lang.GroovyRuntimeException exception after upgrade to 3.47

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • pmd-plugin
    • None

      Hello together,

      Two days back we updated this plugin from version 3.46 to version 3.47.

      As a consequence we got the following error in our Jenkins pipeline [1]

      The error is been thrown at a place were we import the following libs [2]

      and execute commands like [3]

      Any idea what change in version 3.47 is causing this exception?

      Thanks for a hint.

      Best Regards

      Frank

      Remark: After a rollback to version 3.46 everything is working fine again

      [1]

      [Pipeline] echo Caught: groovy.lang.GroovyRuntimeException: DOMSource cannot be processed: check that saxon9-dom.jar is on the classpath
      [Pipeline] echo

      [2][

      import groovy.xml.DOMBuilder
      import groovy.xml.XmlUtil
      import groovy.xml.dom.DOMCategory

      [3]

          def modPom = XmlUtil.serialize(pom).toString()
          pom = null
          deps = null
          writeFile file: filePath, text: modPom

            drulli Ulli Hafner
            hobbykoch Frank Reisenhofer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: