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

From: <jenkinsci-users@googlegroups.com> on behalf of Ankush Purwar 
<ankush.pur...@nagarro.com>
Reply-To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com>
Date: Tuesday, December 20, 2016 at 7:41 AM
To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com>
Subject: Jenkins plugin development issues..

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 ?


--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/SG2PR06MB172572708633742E67ADBDBAE4900%40SG2PR06MB1725.apcprd06.prod.outlook.com<https://groups.google.com/d/msgid/jenkinsci-users/SG2PR06MB172572708633742E67ADBDBAE4900%40SG2PR06MB1725.apcprd06.prod.outlook.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/AFB07B3E-021D-466F-9ED6-3A7A27A68DE6%40cisco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to