X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Frobot.sh;h=a76f691591a8319dba88e6f33c1b215c5101bc82;hb=a90b5e6614848f4653b2eb1ddb2be6d98b382e22;hp=9b5de98d8af16709346468d765393e0a9e04d10a;hpb=0ead85f06d8d41d4fb31bcf814cb604655947027;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/robot.sh b/jenkins-scripts/robot.sh index 9b5de98d8..a76f69159 100755 --- a/jenkins-scripts/robot.sh +++ b/jenkins-scripts/robot.sh @@ -1,7 +1,13 @@ #!/bin/bash +# make sure we don't require tty for sudo operations +cat </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 @@ -32,10 +38,10 @@ 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 -yum install -y -q nc +## 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 :