Parametrized build with multiple checkboxes?

4,000 views
Skip to first unread message

thomas....@oath.com

unread,
Jul 5, 2017, 5:04:44 AM7/5/17
to job-dsl-plugin
Hi,

basically the problem I have is that currently the plugin which could do it
is not allowed to use because of announced security issues (Extended choice plugin).

What I need is a list of checkboxes to have a multi choice (I don't need scripting)...

Using the Job DSL I organized a JSON based configuration where I would be able to put
a type "multi-choice" and then to write a loop that creates individual checkboxes but there
are following disadvantages:
  • Each checkbox item name represents a separate environment variable
  • Each variable has to be a valid name. As an example you cannot use "foo-bar" or "9"
  • The pipeline code need to know all entries to handle them. You cannot easily manage a loop
For those who might be confuses:

  • Former use/result: VERSIONS="7,8,9" => when the extended choice plugin were used.
  • Individual checkboxes: VERSION_7, VERSION_8 and VERSION_9
Any ideas on how to go with it? Best practises? Alternatives?

Kind regards,
Thomas

Daniel Spilker

unread,
Jul 6, 2017, 3:50:47 PM7/6/17
to job-dsl...@googlegroups.com
Are there unresolved security issues in extended-choice-parameter plugin? The script security issues have been fixed some time ago.

https://jenkins.io/security/advisory/2017-04-10/#extended-choice-parameter-plugin

Daniel

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/9fe09ef3-81fa-4461-a8f8-0567da1d2a92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages