1
<?xml version='1.0' encoding='UTF-8'?>
4
<description></description>
5
<keepDependencies>false</keepDependencies>
7
<hudson.queueSorter.PrioritySorterJobProperty>
8
<priority>100</priority>
9
</hudson.queueSorter.PrioritySorterJobProperty>
10
<hudson.model.ParametersDefinitionProperty>
11
<parameterDefinitions>
12
<hudson.model.StringParameterDefinition>
13
<name>landing_candidate</name>
14
<description>The candidate branch to build and test</description>
15
<defaultValue></defaultValue>
16
</hudson.model.StringParameterDefinition>
17
<hudson.model.StringParameterDefinition>
18
<name>test_suite</name>
19
<description>The name for the test suite (e.g. camera_app).</description>
20
<defaultValue></defaultValue>
21
</hudson.model.StringParameterDefinition>
22
<hudson.model.StringParameterDefinition>
24
<description>Additional hooks for the build</description>
25
<defaultValue>D08add_ppa-qt5-proper D09add_ppa-ubuntu-sdk-team-ppa</defaultValue>
26
</hudson.model.StringParameterDefinition>
27
<hudson.model.StringParameterDefinition>
28
<name>target_branch</name>
29
<description>The target branch to merge into</description>
30
<defaultValue></defaultValue>
31
</hudson.model.StringParameterDefinition>
32
</parameterDefinitions>
33
</hudson.model.ParametersDefinitionProperty>
35
<scm class="hudson.scm.NullSCM"/>
36
<assignedNode>mediumtests-slave</assignedNode>
37
<canRoam>false</canRoam>
38
<disabled>false</disabled>
39
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
40
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
41
<triggers class="vector"/>
42
<concurrentBuild>true</concurrentBuild>
44
<com.ubuntu.builder.PBuilderPlugin>
45
<hooks>$hooks A20bump_version_autopilot</hooks>
46
<mainBranch>$landing_candidate</mainBranch>
47
<packagingBranch></packagingBranch>
48
<targetBranch>$target_branch</targetBranch>
49
<extraHookDir></extraHookDir>
50
<parallelJobs>2</parallelJobs>
51
<distroArch>saucy-amd64</distroArch>
52
</com.ubuntu.builder.PBuilderPlugin>
58
export REPOLIST=/etc/apt/sources.list.d/00localrepo.list
60
sudo sh -c "echo \"deb file://`pwd`/work/output/ ./\" > $REPOLIST"
62
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
66
# (mmrazik) there seems to be a bug in rsyslog and during update "rsyslog restart" command just hands
67
sudo apt-mark hold rsyslog
68
sudo apt-get -y upgrade
70
package_list=""
71
for i in `ls work/output/*.deb`; do
72
package_name=`dpkg -I $i | grep Package | cut -d " " -f 3`
73
apt-cache policy $package_name
74
package_list="$package_list $package_name"
76
sudo apt-get -y --force-yes install $package_list
79
#sudo apt-get -y --force-yes install bzr python-autopilot recordmydesktop libunity-core-6.0-5
83
sudo service lightdm stop
88
# Workaround for autopilot crashing when parsing debug output
90
sudo chmod 666 /dev/autopilot-uinput
92
### same workaround as for autopilot tests... first qt app run somehow hangs...
93
export LIBGL_DEBUG=verbose
95
cat > /tmp/main.qml <<EOF
100
color: "red"
104
qmlscene /tmp/main.qml &
109
autopilot run -o /tmp/test_results.xml -f xml -r -rd /tmp/ $test_suite || true
111
mv /tmp/test_results.xml .
112
mv /tmp/*.ogv . || touch no_videos.ogv # In case no tests fail, there are no recorded videos
116
####################################### cleanup #########################################
117
sudo rm -f "$REPOLIST"
118
sudo apt-get purge -y --force-yes $package_list
119
sudo apt-get autoremove -y --force-yes
120
for pid in `pidof X`; do
123
sudo rm /tmp/.X*-lock || true
124
sudo rm -rf /tmp/rMD-session-* || true
125
sudo rm -rf /tmp/tmp* || true
126
sudo rm /tmp/*.sci || true
128
</hudson.tasks.Shell>
131
<hudson.tasks.ArtifactArchiver>
132
<artifacts>*.ogv, *.xml</artifacts>
133
<latestOnly>false</latestOnly>
134
</hudson.tasks.ArtifactArchiver>
135
<hudson.tasks.junit.JUnitResultArchiver>
136
<testResults>test_results.xml</testResults>
137
<keepLongStdio>false</keepLongStdio>
138
<testDataPublishers/>
139
</hudson.tasks.junit.JUnitResultArchiver>