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
Allow Jenkins access to alternatives command to set Java version
[releng/builder.git]
/
jenkins-scripts
/
robot.sh
diff --git
a/jenkins-scripts/robot.sh
b/jenkins-scripts/robot.sh
index 26feb1d322df63602321ad041efc91963cc02989..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