I've just found those variables are private:
-
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tools/JDKInstaller.java#L739-L741
So no way to set them directly unless running the method doPostCredential
import jenkins.model.*
import hudson.model.*
def inst = Jen
Hey Mike,
We decided not to download from Oracle. Instead we have a local repo and we
use puppet to manage/install the java package. So I did it like in the
script above by setting the name and the path where java is installed.
It's better to have a local repo and use this one instead. But if y
Since Jenkins has an http server delivering content from the userContent
directory, I configured the JDK download location to be the userContent
directory of the Jenkins server. That allows me to keep the JDK download
self-contained within the Jenkins server, without any scripting.
Mark Waite
On
Did you ever find a solution for this? I'm trying to automate the JDK
installations for a new jenkins server.
Thanks.
On Friday, April 29, 2016 at 11:03:50 AM UTC-4, Stijn Diependaele wrote:
>
> Dear,
>
> I'm trying to write a groovy script which manages the JDK installs.
>
> The code below wo
Dear,
I'm trying to write a groovy script which manages the JDK installs.
The code below would set the JDK installation with the home folder.
Although I would like to us an automatic installation from Oracle.
You have to set the username and password for this. But how do i pass the
username an