Xicheng Chang 12fe72fa73 Save zuul/jenkins/gearman config on repo
- so they don't get lost when servers are down.
- also place runtime_code_path.jpg in imgs/ directory

Change-Id: I614c51929cb7a624fd8c6720bc8fe17a62a8ab40
2015-07-31 16:15:22 -07:00

113 lines
4.6 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>30</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty plugin="zmq-event-publisher@0.0.2">
<enabled>false</enabled>
</org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>NODE_LABEL</name>
<description></description>
<defaultValue>wip-devstack-jks</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<assignedNode>devstack-precise</assignedNode>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command># Change timezone to UTC to be generalized with elasticsearch
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime
# add fixed ip mappings to avoid dns timeouts and point package downloads to local mirror
sudo sh -c &quot;sed &apos;s/91.189.91.14/10.145.81.232/&apos; /etc/hosts &gt; /etc/hosts.new&quot;
sudo sh -c &quot;sed &apos;s/91.189.92.200/10.145.81.93/&apos; /etc/hosts.new &gt; /etc/hosts.newb&quot;
sudo mv /etc/hosts.newb /etc/hosts
sudo sh -c &quot;echo &apos;199.27.77.185 pypi.python.org&apos; &gt;&gt; /etc/hosts&quot;
# cirros image source sometimes turns flaky, so use the local mirror
sudo sh -c &quot;echo &apos;10.145.81.236 download.cirros-cloud.net&apos; &gt;&gt; /etc/hosts&quot;</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/bash -xe
if [[ ! -e devstack-gate ]]; then
git clone http://10.145.81.234/openstackci/gerrit/p/devstack-gate
else
cd devstack-gate
git remote set-url origin http://10.145.81.234/openstackci/gerrit/p/devstack-gate
git remote update
git reset --hard
git clean -x -f
git checkout master
git reset --hard remotes/origin/master
git clean -x -f
cd ..
fi</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export BRANCH_OVERRIDE=default
if [ &quot;$BRANCH_OVERRIDE&quot; != &quot;default&quot; ] ; then
export ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<be.certipost.hudson.plugin.SCPRepositoryPublisher plugin="scp@1.9-SNAPSHOT">
<siteName>root@10.145.81.234:/var/log/jenkins</siteName>
<entries>
<be.certipost.hudson.plugin.Entry>
<filePath>logs/$LOG_PATH</filePath>
<sourceFile>logs/**</sourceFile>
<keepHierarchy>true</keepHierarchy>
<copyConsoleLog>false</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
<be.certipost.hudson.plugin.Entry>
<filePath>logs/$LOG_PATH</filePath>
<sourceFile>**/testr_results.html.gz</sourceFile>
<keepHierarchy>false</keepHierarchy>
<copyConsoleLog>false</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
<be.certipost.hudson.plugin.Entry>
<filePath>logs/$LOG_PATH</filePath>
<sourceFile>**/subunit_log.txt.gz</sourceFile>
<keepHierarchy>false</keepHierarchy>
<copyConsoleLog>false</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
<be.certipost.hudson.plugin.Entry>
<filePath>logs/$LOG_PATH</filePath>
<sourceFile></sourceFile>
<keepHierarchy>false</keepHierarchy>
<copyConsoleLog>true</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
</entries>
</be.certipost.hudson.plugin.SCPRepositoryPublisher>
</publishers>
<buildWrappers>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.3.2"/>
</buildWrappers>
</project>