ParametersDefinitionProperty pdp = this.project.getProperty(ParametersDefinitionProperty.class);
You could try and implement a BuildChooser: https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/util/BuildChooser.java
Robert Sandell
Software Tools Engineer - SW Environment and Product Configuration
Sony Mobile Communications
--
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.
For more options, visit https://groups.google.com/d/optout.
My idea was more around not using parameters but instead configure the git plugin to use your buildchooser to provide what to build, my assumption was that the rest of your plugin code had the necessary information needed for the buildchooser to use.
You can see examples of BuildChooser implementations on the wiki: https://wiki.jenkins-ci.org/display/JENKINS/Extension+points#Extensionpoints-hudson.plugins.git.util.BuildChooser
And here is one from my plugin: https://github.com/jenkinsci/gerrit-trigger-plugin/blob/master/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerBuildChooser.java