I have three drop down boxes and I want the first drop down variable to 
determine what is in the second drop down.  My algo below works with hard 
coding the first drop down variable and I get the return variable I need. 
 $TradingGroup is the variabale from the first drop down I am trying to 
populate this algo with.



def props = new Properties()

//initialize property file path//
def stream = new FileInputStream('/tmp/***')
try {
//load property file//
props.load(stream)
} finally {
//once loaded close the stream//
stream.close()
}
//get only property keys and convert into string array//
def parameters = props.keySet() as String[]
//println parameters
//def parameters=props.keySet() as String;
//parameters.each { println it }
parameters.each { def groupString = it.split(',') 
                println groupString
                 
                 groupString.each{ it.split(',')
                                  if (groupString[0] == $TradingGroup){
                                    var = it
                                    if (it!=$TradingGroup){
                                      println var
                                    return var
                                    }}
                                  }
                }

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b4ce7f06-5d08-498e-95a6-5d9388eee51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to