Disable builder-weekly job
[releng/builder.git] / jenkins-scripts / devstack.sh
1 #!/bin/bash
2
3 # add in a test copr repo
4 wget http://copr.fedoraproject.org/coprs/tykeal/odl-updates/repo/epel-7/tykeal-odl-updates-epel-7.repo -O /etc/yum.repos.d/tykeal-odl-updates-epel-7.repo
5
6 yum clean all
7
8 # Install xpath
9 yum install -y perl-XML-XPath python-pip
10
11 yum update -y python-six
12
13 # It looks like the devstack gate is stomping on our dnsmasq setup which
14 # therefore kills our ability to do proper lookups of some resources.
15 # Let's capture the 3 nexus IPs into /etc/hosts
16 cat <<EOHOSTS >> /etc/hosts
17 # the internal address for nexus
18 $(dig +short nexus.opendaylight.org) nexus.opendaylight.org
19 # all the nexus proxies
20 $(dig +short nexus01.dfw.opendaylight.org) nexus01.dfw.opendaylight.org
21 $(dig +short nexus02.dfw.opendaylight.org) nexus02.dfw.opendaylight.org
22 $(dig +short nexus03.ord.opendaylight.org) nexus03.ord.opendaylight.org
23 EOHOSTS
24
25 # make sure we don't require tty for sudo operations
26 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
27 Defaults:jenkins !requiretty
28 EOF
29
30 # vim: sw=2 ts=2 sts=2 et :