Re: how to avoid cps error using XmlSlurper() method in jenkins pipeline

2021-01-13 Thread jfern...@forgottenempires.net
t; > HTH Reinhold > > > > > > *From:* jenkins...@googlegroups.com *On > Behalf Of *jfern...@forgottenempires.net > *Sent:* Mittwoch, 13. Jänner 2021 10:22 > *To:* Jenkins Users > *Subject:* how to avoid cps error using XmlSlurper() method in jenkins > pi

RE: how to avoid cps error using XmlSlurper() method in jenkins pipeline

2021-01-13 Thread Reinhold Füreder
: Mittwoch, 13. Jänner 2021 10:22 To: Jenkins Users Subject: how to avoid cps error using XmlSlurper() method in jenkins pipeline I am using a simple test pipeline to get a username out of a xml file, I have written a simple function using the XmlSlurper method and I have included the @NonCPS

how to avoid cps error using XmlSlurper() method in jenkins pipeline

2021-01-13 Thread jfern...@forgottenempires.net
I am using a simple test pipeline to get a username out of a xml file, I have written a simple function using the XmlSlurper method and I have included the @NonCPS annotation at the beginning of the function but I keep getting an error, even though the function seems to work as it prints out