Update Minions table to use bootstrap theme
[releng/builder.git] / jenkins-scripts / robot.sh
index b292e9ea998ecf77956a40879a5a5723bd8ca57f..064af6e5cfa84647a5d383ee1c5203ccec9ebef7 100755 (executable)
@@ -1,24 +1,29 @@
 #!/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 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
-
-# disable firewall rules
+# These development packages are needed for successful installation of robotframework-sshlibrary (done elsewhere)
+yum install -y -q libffi-devel openssl-devel
+
+## Install netcat & docker-py
+yum install -y -q nc python-docker-py
+
+# Install dependencies for matplotlib library used in longevity framework
+yum install -y yum-utils
+yum-builddep -y python-matplotlib
+
+# make sure the firewall is stopped
 service iptables stop
 
+# install crudini command line tool for editing config files
+yum install -y crudini
+
 # vim: sw=2 ts=2 sts=2 et :