Split cluster node startup and cluster node configuration
[releng/builder.git] / jenkins-scripts / robot.sh
index af2f5fd46e5f6d4f2808e6d04b6574b5287c37b8..a76f691591a8319dba88e6f33c1b215c5101bc82 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/bash
 
+# make sure we don't require tty for sudo operations
+cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins     ALL = NOPASSWD: /usr/bin/sshuttle, /usr/bin/kill, /usr/sbin/iptables
+EOF
+
 yum clean all
-yum install -y -q unzip python-netaddr @development
+yum install -y -q unzip python-netaddr sshuttle @development
 yum remove -y robotframework-{sshlibrary,requests}
 
 ## install Latest Robot Framewrok from source
@@ -25,7 +31,17 @@ tar -xvf v0.3.8.tar.gz > /dev/null 2>&1
 cd robotframework-requests-0.3.8/
 python setup.py install > /dev/null 2>&1
 
-# disable firewall rules
+## install Latest Robot Framework Selenium2Library from source
+cd /tmp
+wget https://pypi.python.org/packages/source/r/robotframework-selenium2library/robotframework-selenium2library-1.7.1.tar.gz > /dev/null 2>&1
+tar -xvf robotframework-selenium2library-1.7.1.tar.gz > /dev/null 2>&1
+cd robotframework-selenium2library-1.7.1
+python setup.py install > /dev/null 2>&1
+
+## Install netcat & docker-py
+yum install -y -q nc python-docker-py
+
+# make sure the firewall is stopped
 service iptables stop
 
 # vim: sw=2 ts=2 sts=2 et :