This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


The following commit(s) were added to refs/heads/feature/SLING-7245 by this 
push:
     new 3a79296  SLING-7245 - Validate pull requests using Jenkins
3a79296 is described below

commit 3a792960dfeaa25f0fa166a4116779d37bbee769
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Dec 18 00:06:06 2018 +0100

    SLING-7245 - Validate pull requests using Jenkins
    
    Attempt to use XmlSluper, XmlParser is rejected on Jenkins.
---
 src/sling/SlingModuleParser.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sling/SlingModuleParser.groovy 
b/src/sling/SlingModuleParser.groovy
index 36e0eb5..c26a0e8 100644
--- a/src/sling/SlingModuleParser.groovy
+++ b/src/sling/SlingModuleParser.groovy
@@ -21,7 +21,7 @@ class SlingModuleParser {
     }
 
     def parse() {
-        def slingMod = new XmlParser().parse(overrides)
+        def slingMod = new XmlSlurper().parseText(overrides)
         if ( slingMod?.jenkins?.jdks ) {
             def jdks = []
             slingMod.jenkins.jdks.jdk.each { jdks.add it.text() }

Reply via email to