Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix autorelease logrotate
[releng/builder.git]
/
jenkins-scripts
/
robot.sh
diff --git
a/jenkins-scripts/robot.sh
b/jenkins-scripts/robot.sh
index 88dc83a69a2417be99fd35d0e1362aee171d9b15..a76f691591a8319dba88e6f33c1b215c5101bc82 100755
(executable)
--- a/
jenkins-scripts/robot.sh
+++ b/
jenkins-scripts/robot.sh
@@
-1,7
+1,13
@@
#!/bin/bash
#!/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 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
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
## 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 :
service iptables stop
# vim: sw=2 ts=2 sts=2 et :