No, I am using the Jenkins Tools selection of “Install Automatically” in the JDK section. The options for “Install Automatically” are:
- Extract zip/tar.gz
- Install Oracle … from website
- Run Batch Command
- Run Sh command
A single run of the freestyle build will run either the batch or sh commands multiple times in the course of the run, usually multiple times in individual build steps (but not every build step).
Each time it runs the console shows for example:
**15:06:55** New run name is '#30.358.9.9997'
**15:06:55** [jdk1.8.0_391_auto] $ sh -e C:\J\tools\hudson.model.JDK\jdk1.8.0_391_auto\hudson13515112110805072328.sh
**15:06:57** [jdk1.8.0_391_auto] $ sh -e C:\J\tools\hudson.model.JDK\jdk1.8.0_391_auto\hudson1089906654796401101.sh
**15:06:58** [jdk1.8.0_391_auto] $ sh -e C:\J\tools\hudson.model.JDK\jdk1.8.0_391_auto\hudson9135652287968545959.sh
**15:07:00** Archiving artifacts
**15:09:05** Recording fingerprints
I likely could resolve this by putting the JDK installation in my own build step, but this is the process baked into Jenkins and it is not functioning as I would expect in freestyle builds.