Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
From talking to Jonathan and Mike, my understanding is that narayana.sh should wget the DB drivers from albany. Instead it relies on them being available in /home/hudson/dbdrivers. The problem with this approach is that it requires setting up every time we add a new machine in the pool, or add new drivers.
Here's what happens when you run the Oracle JDBC job on a machine with no /home/hudson/dbdrivers:
Started by upstream project "jbossts-EAP61-jdbcobjectstore-haverstraw-oracle" build number 1 originally caused by: Started by user anonymous Building remotely on haverstraw in workspace /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw Checkout:haverstraw / /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw - hudson.remoting.Channel@4376502f:haverstraw Using strategy: Default Cloning the remote Git repository Cloning repository git://github.com/jbosstm/narayana.git git --version git version 1.7.1 Fetching upstream changes from origin Commencing build of Revision dc53acf1f5faffeb92ecabba85a6877bc699ada0 (origin/4.17) Checking out Revision dc53acf1f5faffeb92ecabba85a6877bc699ada0 (origin/4.17) No change to record in branch origin/4.17 [haverstraw] $ /bin/bash -xe /tmp/hudson5928481526507148318.sh + export ANT_HOME=/home/hudson/apache-ant-1.8.2 + ANT_HOME=/home/hudson/apache-ant-1.8.2 + export PATH=/home/hudson/apache-ant-1.8.2/bin:/usr/local/jdk1.6.0_37/bin:/usr/local/jdk1.6.0_37/bin:/usr/local/jdk1.7.0_09/bin:/usr/local/bin:/bin:/usr/bin + PATH=/home/hudson/apache-ant-1.8.2/bin:/usr/local/jdk1.6.0_37/bin:/usr/local/jdk1.6.0_37/bin:/usr/local/jdk1.7.0_09/bin:/usr/local/bin:/bin:/usr/bin + export MFACTOR=2 + MFACTOR=2 + rm -rf /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/ext/../qa/dbdrivers/ + cd /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/ + ant get.drivers -Ddriver.url=file:///home/hudson/dbdrivers Buildfile: /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/build.xml clean-dbdrivers: get.drivers: [mkdir] Created dir: /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/dbdrivers/oracle_10_2_0_4 [get] Getting: file:/home/hudson/dbdrivers/ojdbc14.jar [get] To: /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/dbdrivers/oracle_10_2_0_4/ojdbc14.jar [get] Error getting file:/home/hudson/dbdrivers/ojdbc14.jar to /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/dbdrivers/oracle_10_2_0_4/ojdbc14.jar BUILD FAILED /home/hudson/workspace/jbossts-EAP61-jdbcobjectstore-haverstraw-oracle/DB_TYPE/oracle/jdk/jdk6.latest/slave/haverstraw/qa/build.xml:66: java.io.FileNotFoundException: /home/hudson/dbdrivers/ojdbc14.jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileInputStream.<init>(FileInputStream.java:79) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:660) at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:579) at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:569) Total time: 0 seconds Build step 'Execute shell' marked build as failure Archiving artifacts Sending e-mails to: gtrikler@redhat.com Finished: FAILURE