I don't know how convenient it is for you to use a Groovy script, but you might also take a look at the Configuration Slicing plugin which provides a GUI to look at all jobs' JDKs at one time and choose their JDK in bulk.
On Tue, Jun 26, 2012 at 2:07 AM, Michaël Pailloncy <[email protected]>wrote: > Thanks for yours replies ! > > @Andrey : I know how to configure a JDK in Jenkins configuration but I > would like to force users to specify a JDK during a job configuration. > Actually, a user can set JDK to 'default value'. I would like to force him > to set 'jdk1.5' or 'jdk1.6' instead of default. Actually, I manage a > Jenkins instance with an hundred of jobs. Many developers can configure > their own jobs. I could edit them with a Groovy script and set the value of > the JDK if it's not, but this does not guarantee me that all future job > will have their JDK value specified. > > @Jacob : Effectively, It could be nice to have the same feature for others > tools (Maven, Ant, Groovy, ...) > > It could be an idea for a plugin or a new feature in the Jenkins core ?? > > Michaël > > > 2012/6/26 Jacob Robertson <[email protected]> > >> I have a similar need for the maven version. We implemented a pretty >> ugly hack to force it, but I did not find a way to (for example) remove the >> "(default)" option so that the user always specifies the exact version to >> use. >> >> >> On Mon, Jun 25, 2012 at 3:48 PM, Andrey Myatlyuk <[email protected]>wrote: >> >>> Hi Michaël, >>> In manage Jenkins section, configure JDK which you would like to use and >>> use the name given to that JDK in your job definition. >>> You can also have a look at Jenkins Definitive >>> Guide<http://www.wakaleo.com/books/jenkins-the-definitive-guide>book. It >>> describes the configuration in greater details. >>> Andrey >>> >>> >>> On Mon, Jun 25, 2012 at 4:42 AM, mpapo - Michaël Pailloncy < >>> [email protected]> wrote: >>> >>>> Hi all, >>>> >>>> Is there a way to force users to specify JDK version (not default) >>>> when they configure a job ? >>>> >>>> Thanks in advance, >>>> >>>> Michaël >>> >>> >>> >> >
