Merge "Migrate custom jjb jobs to logs.opendaylight.org for ovsdb"
[releng/builder.git] / jenkins-scripts / robot.sh
index c51d70f40487dc6df580b33e55dba41a621e9db8..064af6e5cfa84647a5d383ee1c5203ccec9ebef7 100755 (executable)
@@ -1,10 +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 unzip
-yum install -y python-netaddr
+yum install -y -q unzip python-netaddr sshuttle @development
+yum remove -y robotframework-{sshlibrary,requests}
+
+# 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
 
-# disable firewall rules
+# 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 :