scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

Upgrade artifactory so that we can use repo layouts #171

Closed adriaanm closed 8 years ago

adriaanm commented 8 years ago

which requires java 8 which means we have to upgrade jenkins, as the old version couldn't handle the java upgrade

much hilarity ensued updating alternatives the chef java recipe is a cruel joke... probably best to avoid it

adriaanm commented 8 years ago

this is running in prod

adriaanm commented 8 years ago

i think there's still a problem with the java recipe forcing us back to java 7 and messing up /etc/alternatives...

adriaanm commented 8 years ago

nope -- the java recipe just keeps messing with java

need to manually do:

$ alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
 + 1           /usr/lib/jvm/java-1.7.0/bin/java
*  2           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   3           /usr/lib/jvm/java-1.8.0-openjdk.x86_64/bin/java

and select option 3, which i installed with

alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.8.0-openjdk.x86_64/bin/java 3
adriaanm commented 8 years ago

oh my this went pretty deep again... brain dumping

  "jenkinsHomes": {
    "y:\\jenkins": {
      "java_path": "\"/cygdrive/c/Program Files/Java/jdk1.8.0_92/bin/java\""
    }
  },
  "java": { "java_home": "c:/Program Files/Java/jdk1.8.0_92/bin" },
adriaanm commented 8 years ago

i installed java 8 manually on windows -- hardcoded the paths in chef