[JIRA] (JENKINS-14993) JDK auto-installer for OSX

2012-10-03 Thread cow...@java.net (JIRA)














































cowwoc
 commented on  JENKINS-14993


JDK auto-installer for OSX















Please increase the priority of this issue. Java is no longer bundled with OSX 10.8, which means that we can't even launch a slave node without manual intervention! Here is the output I get:


BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_EXECUTION_STRING=set
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12")
BASH_VERSION='3.2.48(1)-release'
DIRSTACK=()
EUID=502
GROUPS=()
HOME=/Users/builds
HOSTNAME=gili-mac
HOSTTYPE=x86_64
IFS=$' \t\n'
LOGNAME=builds
MACHTYPE=x86_64-apple-darwin12
MAIL=/var/mail/builds
OPTERR=1
OPTIND=1
OSTYPE=darwin12
PATH=/usr/bin:/bin:/usr/sbin:/sbin
PPID=382
PS4='+ '
PWD=/Users/builds
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SSH_CLIENT='192.168.1.100 28990 22'
SSH_CONNECTION='192.168.1.100 28990 192.168.1.101 22'
TERM=dumb
TMPDIR=/var/folders/88/8l3vck9x15zfc4y7f7w1lx_cgp/T/
UID=502
USER=builds
_=bash
[10/03/12 10:07:49] [SSH] Checking java version of java
Couldn't figure out the Java version of java
No Java runtime present, requesting install.
2012-10-03 10:08:08.032 java[385:100b] JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote

[10/03/12 10:07:49] [SSH] Checking java version of /usr/bin/java
Couldn't figure out the Java version of /usr/bin/java
No Java runtime present, requesting install.
2012-10-03 10:08:08.061 java[386:100b] JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote

[10/03/12 10:07:49] [SSH] Checking java version of /usr/java/default/bin/java
Couldn't figure out the Java version of /usr/java/default/bin/java
bash: /usr/java/default/bin/java: No such file or directory

[10/03/12 10:07:49] [SSH] Checking java version of /usr/java/latest/bin/java
Couldn't figure out the Java version of /usr/java/latest/bin/java
bash: /usr/java/latest/bin/java: No such file or directory

[10/03/12 10:07:49] [SSH] Checking java version of /usr/local/bin/java
Couldn't figure out the Java version of /usr/local/bin/java
bash: /usr/local/bin/java: No such file or directory

[10/03/12 10:07:49] [SSH] Checking java version of /usr/local/java/bin/java
Couldn't figure out the Java version of /usr/local/java/bin/java
bash: /usr/local/java/bin/java: No such file or directory

[10/03/12 10:07:49] [SSH] Checking java version of /Users/builds/.jenkins/jdk/bin/java
Couldn't figure out the Java version of /Users/builds/.jenkins/jdk/bin/java
bash: /Users/builds/.jenkins/jdk/bin/java: No such file or directory

Darwin gili-mac 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /Users/builds/.jenkins/jdk/bin/java], and we also failed to install JDK as a fallback
	at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:350)
	at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:288)
	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to detect the environment for automatic JDK installation. Please report this to jenkinsci-us...@googlegroups.com: Darwin gili-mac 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

	at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:405)
	at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:348)
	... 7 more
[10/03/12 10:07:49] [SSH] Connection closed.




























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-14993) JDK auto-installer for OSX

2012-08-30 Thread cow...@java.net (JIRA)














































cowwoc
 created  JENKINS-14993


JDK auto-installer for OSX















Issue Type:


New Feature



Affects Versions:


current



Assignee:


Unassigned


Components:


core



Created:


30/Aug/12 3:21 PM



Description:


In the past Oracle didn't support MacOS X, however as of JDK 7 update 6 this is no longer the case.

When I run the JDK auto installer against an OSX machine I am getting "JDK installation skipped: Unknown CPU name: mac os x".
Expected behavior: Add support for auto-installing Oracle's JDK on MacOS X.




Environment:


MacOS X 10.7




Project:


Jenkins



Priority:


Major



Reporter:


cowwoc

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira