[jboss-cvs] JBossAS SVN: r86921 - in projects/ejb3/trunk/hudson: scripts/common and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 7 09:19:38 EDT 2009


Author: wolfc
Date: 2009-04-07 09:19:38 -0400 (Tue, 07 Apr 2009)
New Revision: 86921

Added:
   projects/ejb3/trunk/hudson/scripts/common/slave.sh
Modified:
   projects/ejb3/trunk/hudson/kickstart/README
   projects/ejb3/trunk/hudson/scripts/common/Makefile
Log:
Extended the README in kickstart and added slave3


Modified: projects/ejb3/trunk/hudson/kickstart/README
===================================================================
--- projects/ejb3/trunk/hudson/kickstart/README	2009-04-07 13:16:51 UTC (rev 86920)
+++ projects/ejb3/trunk/hudson/kickstart/README	2009-04-07 13:19:38 UTC (rev 86921)
@@ -1,3 +1,10 @@
+Beforhand created a new virtual network in virt-manager:
+Network Name: hudson
+Network: (default) 192.168.100.0/24
+Start: (default) 192.168.100.128
+End: (default) 192.168.100.254
+Forwarding to physical network: NAT to any physical device
+
 Create two partitions for a slave within LVM:
 
 lvm lvcreate -L 16G -n V_ROOT2 FAST
@@ -3,2 +10,41 @@
 lvm lvcreate -L 2G -n V_SWAP2 FAST
 
+virt-install \
+        --name rhel-5.3-guest2 \
+        --ram 1024 \
+        --vcpus 2 \
+        --file /dev/mapper/FAST-V_ROOT2 \
+        --network network:hudson \
+        --vnc \
+        --paravirt \
+        --location http://qafiler.bos.redhat.com/redhat/rhel5-server-x86_64/ \
+        --extra-args ks=http://mike.lab.bos.redhat.com/~carlo/kickstart/anaconda
+-ks.cfg
+
+Wait (and watch) anaconda do its job and 'Reboot' the machine.
+The machine will actually shutdown.
+
+Add V_SWAP2 to /etc/xen/rhel-5.3-guest2
+
+Start the guest.
+
+Within guest:
+/etc/sysconfig/network: set appropriate hostname
+Using system-config-network-tui set eth0 to a fixed ip (192.168.100.12) netmask 255.255.255.0 and gateway 192.168.100.1.
+
+Create swap partition on /dev/xvdb.
+# mkswap /dev/xvdb1
+Add /dev/xvdb1 to /etc/fstab
+# swapon -a
+
+# useradd -m hudson
+
+Setup .ssh/authorized_keys so that no password is needed for:
+mike $ ssh sulley ssh 192.168.100.12
+
+# rsync -avz root at mike.lab.bos.redhat.com:/opt/apache /opt
+
+Make sure the slave is listed in hudson/scripts/common on do make.
+
+# rpm -i jdk-1_5_0_17-linux-amd64.rpm
+# rpm -i jdk-6u11-linux-amd64.rpm

Modified: projects/ejb3/trunk/hudson/scripts/common/Makefile
===================================================================
--- projects/ejb3/trunk/hudson/scripts/common/Makefile	2009-04-07 13:16:51 UTC (rev 86920)
+++ projects/ejb3/trunk/hudson/scripts/common/Makefile	2009-04-07 13:19:38 UTC (rev 86921)
@@ -1,7 +1,10 @@
 EXCLUDES=--exclude '.svn' --exclude 'Makefile'
 # --delete-excluded
 
-distr:
+distr:	slave3
 	sudo -u hudson rsync -av ../common ~hudson/ $(EXCLUDES)
 	sudo -u hudson rsync -av ../common hudson at 192.168.100.11:. $(EXCLUDES)
 	sudo -u hudson rsync -av ../common hudson at 192.168.100.12:. $(EXCLUDES)
+
+slave3:
+	sudo -u hudson rsync -av --rsync-path="ssh 192.168.100.11 rsync" ../common hudson at sulley:. $(EXCLUDES)

Added: projects/ejb3/trunk/hudson/scripts/common/slave.sh
===================================================================
--- projects/ejb3/trunk/hudson/scripts/common/slave.sh	                        (rev 0)
+++ projects/ejb3/trunk/hudson/scripts/common/slave.sh	2009-04-07 13:19:38 UTC (rev 86921)
@@ -0,0 +1,3 @@
+#!/bin/sh
+wget -q -N http://mike.lab.bos.redhat.com:8380/hudson/jnlpJars/slave.jar -O slave.jar
+exec /usr/java/jdk1.6.0_11/bin/java -jar slave.jar


Property changes on: projects/ejb3/trunk/hudson/scripts/common/slave.sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-cvs-commits mailing list