X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Fmininet.sh;h=cd8aecf396c4708c11e42e30e6307d03e5eceb48;hb=622f0e865ae93d7874827aa85cdaa294e3dce2c0;hp=ec17a578afb2387492740309113481e6703b63b4;hpb=7e326552ef30913bf8abb8a7d01325517f179c02;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/mininet.sh b/jenkins-scripts/mininet.sh index ec17a578a..cd8aecf39 100755 --- a/jenkins-scripts/mininet.sh +++ b/jenkins-scripts/mininet.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 + # for whatever reason netopeer & CPqD aren't installed (they weren't in # one of the yum repos we were hooked up to when the base image was # built, they are now. Make sure they're install @@ -29,6 +35,11 @@ service sshd restart # force a password onto the jenkins user echo 'jenkins' | passwd -f --stdin jenkins +# netopeer doesn't work correctly for non-root users from what I'm +# seeing (at least for the initial connection). Let's allow the tests to +# get in as the root user since jenkins already has full sudo +echo 'root' | passwd -f --stdin root + # make sure the firewall is stopped service iptables stop