I have a number of projects running on a Hudson slave. I\'d like one of them to run Ant under Java6, rather than the default (which is Java5 in my environment).
In t
I had a problem where the installed JDK was JDK 8 whereas I wanted Jenkins to use JDK 7 . So , after installing JDK 7 on the Jenkins build box ,
I added the JDK path to jenkins Configurations :
Jenkins -> Manage Jenkins -> Configure system -> JDK -> Add JDK name and Path
Also , Edit jenkins-runner.sh: Add the line:
export JAVA_HOME=""
Change the last two lines to read:
echo "/bin/java" $javaArgs -jar "$war" $args
exec "/bin/java" $javaArgs -jar "$war" $args