Split cluster node startup and cluster node configuration
[releng/builder.git] / jenkins-scripts / robot.sh
index d6db2d8f330394d9e40a245eca4a2fce3d13baa5..a76f691591a8319dba88e6f33c1b215c5101bc82 100755 (executable)
@@ -1,9 +1,47 @@
 #!/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 unzip
+yum install -y -q unzip python-netaddr sshuttle @development
+yum remove -y robotframework-{sshlibrary,requests}
+
+## install Latest Robot Framewrok from source
+cd /tmp
+wget https://pypi.python.org/packages/source/r/robotframework/robotframework-2.9a1.tar.gz > /dev/null 2>&1
+tar -xvf robotframework-2.9a1.tar.gz > /dev/null 2>&1
+cd robotframework-2.9a1
+python setup.py install > /dev/null 2>&1
+
+## install Latest Robot SSHLibrary from source
+cd /tmp
+wget http://pypi.python.org/packages/source/r/robotframework-sshlibrary/robotframework-sshlibrary-2.1.1.tar.gz > /dev/null 2>&1
+tar -xvf robotframework-sshlibrary-2.1.1.tar.gz > /dev/null 2>&1
+cd robotframework-sshlibrary-2.1.1
+python setup.py install > /dev/null 2>&1
+
+## install Latest Robot RequestsLibrary from source
+cd /tmp
+wget https://github.com/bulkan/robotframework-requests/archive/v0.3.8.tar.gz > /dev/null 2>&1
+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
+
+## 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
 
-# disable firewall rules
+# make sure the firewall is stopped
 service iptables stop
 
 # vim: sw=2 ts=2 sts=2 et :