[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2019-11-15 Thread agartheti...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Garner commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 This workaround using multiple delegates seems to be broken again. It was working for me using LTS v2.150.1 but with more recent releases and updates plugins it is not working again. I don't know whether it is the core Jenkins version or a plugin version that has reverted this issue.  I've changed my approach to use groovy.xml.DOMBuilder instead. The code is more verbose and it still requires many methods to be whitelisted, but I hope it is a more stable approach. See https://github.com/agarthetiger/jengu/blob/d9dddba3d1b7644216d088413638dbc84fba1ab4/vars/libraryTestRunner.groovy#L143  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.167922.1454582245000.1574.1573811340701%40Atlassian.JIRA.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-11-15 Thread vivek.pan...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vivek Pandey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-32766  
 
 
  groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
Change By: 
 Vivek Pandey  
 
 
Labels: 
 groovy  triaged-2018-11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-10-05 Thread harid...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hari Dara commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 Thanks Jakub Pawlinski, I am aware of that but was downplaying it as I don't really prefer that approach in a multi-tenant environment with no admin access. Won't it be safe to whitelist it?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-10-05 Thread ja...@pawlinski.pl (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jakub Pawlinski commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 Hari Dara you have to approve it yourself at http://yourhost:8080/scriptApproval/ or jenkins / manage jenkins / in-process script approval  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-10-03 Thread harid...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hari Dara edited a comment on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 I want to try the  delegator  delegate  workaround, but getting this error: {noformat}org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new groovy.xml.MarkupBuilder java.io.Writer {noformat}It doesn't seem like this is [whitelisted|https://github.com/haridsv/script-security-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist], so how is it working for others?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-10-03 Thread harid...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hari Dara edited a comment on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 I want to try the delegator workaround, but getting this error:  {noformat} org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new groovy.xml.MarkupBuilder java.io.Writer  {noformat} It doesn't seem like this is [whitelisted|https://github.com/haridsv/script-security-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist], so how is it working for others?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-10-03 Thread harid...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Hari Dara commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 I want to try the delegator workaround, but getting this error:  org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new groovy.xml.MarkupBuilder java.io.Writer It doesn't seem like this is whitelisted, so how is it working for others?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2018-03-02 Thread neilting...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 neiltingley commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 Same problem and the above worked for me.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2017-01-05 Thread thet...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Francois Ferrand commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 Delegation strategy is actually set correctly, but it seems that it is ignored when trying to resolve the function call: probably an issue in the sandbox interceptor or CpsScript/DSL invokeMethod.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2017-01-05 Thread thet...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Francois Ferrand edited a comment on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 I managed to have this working: need to add 'delegate' before each tag:{code:java}xml.records() { delegate.car(name:'HSV Maloo', make:'Holden', year:2006) {delegate.country('Australia')delegate.record(type:'speed', 'Production Pickup Truck with speed of 271kph')}delegate.car(name:'Royale', make:'Bugatti', year:1931) {delegate.country('France')delegate.record(type:'price', 'Most Valuable Car at $15 million')}}{code}Maybe this is a problem with the closure delegation strategy, set to Closure.OWNER_ONLY  or a custom (e.g. Closure.TO_SELF) strategy which does not try the delegate  ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2017-01-05 Thread thet...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Francois Ferrand updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-32766  
 
 
  groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
Change By: 
 Francois Ferrand  
 
 
Priority: 
 Minor Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2017-01-05 Thread thet...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Francois Ferrand commented on  JENKINS-32766  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
 I managed to have this working: need to add 'delegate' before each tag: 

 

xml.records() { 
delegate.car(name:'HSV Maloo', make:'Holden', year:2006) {
delegate.country('Australia')
delegate.record(type:'speed', 'Production Pickup Truck with speed of 271kph')
}
delegate.car(name:'Royale', make:'Bugatti', year:1931) {
delegate.country('France')
delegate.record(type:'price', 'Most Valuable Car at $15 million')
}
}
 

 Maybe this is a problem with the closure delegation strategy, set to Closure.OWNER_ONLY ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-32766) groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError

2016-08-29 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-32766  
 
 
  groovy.xml.MarkupBuilder fails in Pipeline with NoSuchMethodError   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Component/s: 
 workflow-cps-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.