Skip to content

Instantly share code, notes, and snippets.

@jinmingjian
Last active April 8, 2018 02:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jinmingjian/4433044 to your computer and use it in GitHub Desktop.
Save jinmingjian/4433044 to your computer and use it in GitHub Desktop.

change jdk to Builds in Cloudbee's Jenkins

  1. make sure your jdk package are ready to upload.

  2. Upload the files inside the archive to your private repository on Cloudbees forge (like, /private/abc/ ) so that you have */private/abc/<your_zipped_jdk>,...

  3. On the Jenkins configuration page ([https://YourAccountName.ci.cloudbees.com/configure](https://.ci.cloudbees.com/configure) (use your real account name / subdomain) create a new JDK Installation and set JAVA_HOME to /tmp/<your_jdk> (or any other version you want to use).

  4. Add a Pre Step and add the following shell script. First, it copies the JDK version you are using to the /tmp folder. Be sure to use your real account name / subdomain.

     unzip /private/abc/<your_zipped_jdk> -d /tmp/<your_jdk>
    

References:

[1] http://wiki.cloudbees.com/bin/view/DEV/Custom+Build+Tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment