Merge "Update CentOS7 images for change 56476"
[releng/builder.git] / jenkins-scripts / ubuntu-docker-ovs.sh
index 09479919e53b0838fcabe8ad856436f78609c978..b4e0207e4566f91830e52d9b9d60f574cb41b294 100755 (executable)
@@ -1,5 +1,11 @@
 #!/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: ALL
+EOF
+
 # Do the final install of OVS that the has to be done at boot time for
 # some reason due to how the snapshots keep behaving.
 dpkg --install /root/openvswitch-datapath-dkms* && \
@@ -12,4 +18,3 @@ dpkg --install /root/openvswitch-{common,switch}*
 docker pull alagalah/odlpoc_ovs230
 
 # vim: sw=2 ts=2 sts=2 et :
-