~cjohnston/+junk/convergence

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% extends "touch-base.xml.jinja2" %}
<?xml version='1.0' encoding='UTF-8'?>
{% block assignedNode %}
  <assignedNode>mako</assignedNode>
{% endblock assignedNode %}
{% block triggers %}
  <triggers class="vector"/>
{% endblock %}
{% block timeout %}
  <timeoutMinutes>30</timeoutMinutes>
{% endblock timeout %}

{% block shellcmds %}
<command>set -e
rm -rf *
BRANCH=&quot;lp:~cjohnston/+junk/convergence&quot;
BZRDIR=`echo &quot;$BRANCH&quot; | awk -F/ &apos;{ print $(NF) }&apos;`
bzr branch ${BRANCH} ${BZRDIR}

{% if system_image %}
export TOUCH_IMAGE=--ubuntu-bootstrap
export FROM_HOST=True
{% endif %}

# Wait for images to actually show up on cdimage
##### Commenting out for testing
# sleep 300

${BZRDIR}/scripts/provision.sh

${BZRDIR}/scripts/run-touch-utah-runlist.sh -s $ANDROID_SERIAL -r lp:~cjohnston/+junk/convergence/runlists/touch-smoke-boot.run
{% if system_image %}
VERSION=$(adb shell system-image-cli -b | sed &apos;s/.*: //&apos;)
echo &quot;TARGET=$VERSION
FROM_HOST=True
TOUCH_IMAGE=--ubuntu-bootstrap&quot; &gt; params.txt
{% else %}
BUILDID=$(adb shell cat /var/log/installer/media-info | awk &apos;{ print $(NF)}&apos; | sed -e &apos;s/(//&apos; -e &apos;s/)//&apos;)
echo &quot;TARGET=$BUILDID&quot; &gt; params.txt
{% endif %}
cp params.txt $parent_workspace
</command>
{% endblock %}

{% block artifacts %}
      <artifacts>clientlogs/*</artifacts>
{% endblock %}
{% block descriptionsetter %}
    <hudson.plugins.descriptionsetter.DescriptionSetterPublisher>
      <regexp>Download directory set to /home/ubuntu/Downloads/phablet-flash/ubuntu-touch/([0-9]+.*)</regexp>
      <regexpForFailed>Download directory set to /home/ubuntu/Downloads/phablet-flash/ubuntu-touch/([0-9]+.*)</regexpForFailed>
      <setForMatrix>false</setForMatrix>
    </hudson.plugins.descriptionsetter.DescriptionSetterPublisher>
{% endblock %}