Re: Automating the Choice Parameter on a job

2020-10-22 Thread Danny Trunk
Hello Kari As far as I know JsonSlurper isn't Serializable and defining it for re-use will raise a NotSerializableException and this end up in the catch block. You could either move the Code insider a @NonCPS annotated method or doing everything in one statement. Kari Cowan schrieb am Do., 22.

Re: Automating the Choice Parameter on a job

2020-10-22 Thread Kari Cowan
I couldn't get that to work right but got a little but further using the JsonSlurper (as opposed to JsonSlurperClassic) Assuming my data structure is represented in json like: { "name": "templates", "tags": [ "qa_tmpl-92", "qa_tmpl-93", "qa_tmpl-94" ] } I was trying something l

variable within a variable

2020-10-22 Thread cw
I'm trying to set up a string parameter which will reference a variable which will be created within the pipeline. For instance, when building a parameterized build, the user enters a file path in this format: /srv/jboss/server/${MAL}/log/ Where MAL is assigned via the pipeline and then I try