X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Fubuntu-docker-ovs.sh;h=b4e0207e4566f91830e52d9b9d60f574cb41b294;hb=ca671a709b9f946084373c6b5b059d73da79c949;hp=34f4c9b4c0a778883a82f9df0c136a8e50c645bb;hpb=422f7e222e48b08e5f22ee04bc471465aecc9047;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/ubuntu-docker-ovs.sh b/jenkins-scripts/ubuntu-docker-ovs.sh index 34f4c9b4c..b4e0207e4 100755 --- a/jenkins-scripts/ubuntu-docker-ovs.sh +++ b/jenkins-scripts/ubuntu-docker-ovs.sh @@ -1,5 +1,11 @@ #!/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: 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* && \ @@ -11,19 +17,4 @@ dpkg --install /root/openvswitch-{common,switch}* # pull docker images docker pull alagalah/odlpoc_ovs230 - -# 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/ovs-vsctl -jenkins ALL=NOPASSWD: /usr/bin/ovs-ofctl -jenkins ALL=NOPASSWD: /usr/bin/ovs-dpctl -jenkins ALL=NOPASSWD: /sbin/ip -jenkins ALL=NOPASSWD: /bin/mkdir -jenkins ALL=NOPASSWD: /bin/ln -jenkins ALL=NOPASSWD: /bin/rm -jenkins ALL=NOPASSWD: /etc/init.d/openvswitch-switch -EOF - # vim: sw=2 ts=2 sts=2 et : -