Re: Script groovy in Active Choice Parameter

2020-06-17 Thread Antonio Gomez
Yes and it works fine, the problem is when when I add a script in the Active Choice Parameters plugin. I think inside the plugin I can't use readJson, but I'm going to try it. Thank you El mié., 17 jun. 2020 a las 21:36, Mahima Mishra (<02.mah...@gmail.com>) escribió: > Have you tried readJSON fr

Script groovy in Active Choice Parameter

2020-06-17 Thread Mahima Mishra
Have you tried readJSON from pipeline utility steps plugin? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To vie

Re: Script groovy in Active Choice Parameter

2020-06-17 Thread chencho m-a
Is the file correctly formatted? If you have edited from windows, maybe you have wrong line endings El miércoles, 17 de junio de 2020, 14:38:42 (UTC+2), Antonio Gomez escribió: > > Hello, > > I am trying to display json file content as multiselect within Choice > Active Parameter. > > This is my

Script groovy in Active Choice Parameter

2020-06-17 Thread Antonio Gomez
Hello, I am trying to display json file content as multiselect within Choice Active Parameter. This is my code: //import groovy.json.JsonSlurperClassic import groovy.json.JsonSlurper //def parseJsonText(String jsonText) { // final slurper = new JsonSlurperClassic() // return slurper.parseTex