Jenkins plugin development issues..

28 views
Skip to first unread message

Ankush Purwar

unread,
Dec 20, 2016, 10:41:53 AM12/20/16
to jenkins...@googlegroups.com

Hi,

 

I am implementing a Jenkins plugin as “post build action”. I want to do the following operation.

 

Q1.  I have defined a field of type “repeatable” in config.jelly and this field further have two values say value1 and value2.

How can I ensure that all value1’s are unique across whole repeatable section ?

 

Q2.  I have overridden the configure method as follows

@Extension

                public static class <class name> extends

                                                BuildStepDescriptor<Publisher> {

               

@Override

                        public boolean configure(StaplerRequest req, JSONObject json) throws FormException {

                            System.out.println(" Configure called");

                            save();

                            return true;

                        }

But this method has never called while clicking on save/Apply button. Why ?

 

Q3.  How can I get field of type repeatable (Where each repeatable have 3 text boxes) and use it in other repeatable field using config.jelly ?

 

Q4. How to make use of instance variable ? It doesn’t work for the first time when we select the plugin for the first time. Seems data will not reach on server using DataBoundConstructor until user will hit the save button. Only thing that we could do simple field validation where simple string field data is passed.

 

Can you please provide some pointers/help to achieve the above things ?

 

 

Daniel Beck

unread,
Dec 20, 2016, 11:17:57 AM12/20/16
to jenkins...@googlegroups.com

> On 20.12.2016, at 16:41, Ankush Purwar <ankush...@nagarro.com> wrote:
>
> I am implementing a Jenkins plugin as “post build action”.

This question is best asked on the jenkinsci-dev mailing list as it concerns Jenkins plugin development.

Indra Gunawan (ingunawa)

unread,
Dec 20, 2016, 3:05:06 PM12/20/16
to jenkins...@googlegroups.com

This is not the place to ask this question.  Please go to #jenkins irc channel

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/SG2PR06MB172572708633742E67ADBDBAE4900%40SG2PR06MB1725.apcprd06.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages