X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Frobot.sh;h=a76f691591a8319dba88e6f33c1b215c5101bc82;hb=5450985ba9905da13e194cf4f482a07b7cc656b2;hp=88dc83a69a2417be99fd35d0e1362aee171d9b15;hpb=b6bb4af47bf73a52a82b89dbe05a8f3514613d38;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/robot.sh b/jenkins-scripts/robot.sh index 88dc83a69..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 @@ -35,7 +41,7 @@ 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 :