How to create add buton with drop down options

39 views
Skip to first unread message

Shurik

unread,
May 23, 2016, 12:57:11 PM5/23/16
to Jenkins Developers
Hi,

I try to create new build step plugin.
In the GUI ( jelly ) I want to create the"Add" buton with drop down list. Like we have in parameter job that we have a option to add diff parameter types ( String, choose, ...)

Can you please advise how to do it in jelly and what I need implement in java code?

Where I can find documentation for it?

Thanks,
Shurik

Robert Sandell

unread,
May 24, 2016, 7:19:26 AM5/24/16
to jenkin...@googlegroups.com
Search for the use of hetero-list, one example at [1]

In short, to use hetero-list you implements your own Descriptor extension point and extend that with Descriptor/Describable pairs same as how build steps and parameters are made.
The config.jelly for the Describable is the form snippet that shows up when you have selected what to add from the list.

/B

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0f103d2c-9866-4ff4-85c9-826f55a631ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.

suresh kumar

unread,
May 24, 2016, 8:02:25 AM5/24/16
to Jenkins Developers
Please go through the below article, it suits to your requirement

The above article explains how to introduce variability and develop better modelling of configuration within your Jenkins Plugin.

-Suresh

Shurik

unread,
May 25, 2016, 4:05:03 AM5/25/16
to Jenkins Developers
Thanks a lot.
Shurik
Reply all
Reply to author
Forward
0 new messages