~cjohnston/+junk/settle

« back to all changes in this revision

Viewing changes to jenkins/job-creation/templates/touch-master.xml.jinja2

  • Committer: Paul Larson
  • Date: 2013-08-01 04:25:31 UTC
  • mfrom: (30.1.14 touch-runlists-new)
  • Revision ID: paul.larson@canonical.com-20130801042531-qe09p2ielng1h33m
Rework the way we run all touch jobs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "touch-base.xml.jinja2" %}
 
2
{% block triggers %}
 
3
  <triggers class="vector">
 
4
    <com.redfin.hudson.UrlChangeTrigger>
 
5
      <spec></spec>
 
6
      <url>http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/pending/MD5SUMS</url>
 
7
    </com.redfin.hudson.UrlChangeTrigger>
 
8
  </triggers>
 
9
{% endblock %}
 
10
{% block shellblock %}{% endblock %}
 
11
{% block extrasteps %}
 
12
{% for project in projects %}
 
13
    <hudson.plugins.parameterizedtrigger.TriggerBuilder>
 
14
      <configs>
 
15
        <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
 
16
          <configs class="java.util.Collections$EmptyList"/>
 
17
          <projects>{{project}}</projects>
 
18
          <condition>ALWAYS</condition>
 
19
          <triggerWithNoParameters>false</triggerWithNoParameters>
 
20
          <block>
 
21
{% if "flash" in project %}
 
22
            <buildStepFailureThreshold>
 
23
              <name>FAILURE</name>
 
24
              <ordinal>2</ordinal>
 
25
              <color>RED</color>
 
26
            </buildStepFailureThreshold>
 
27
{% endif %}
 
28
            <unstableThreshold>
 
29
              <name>UNSTABLE</name>
 
30
              <ordinal>1</ordinal>
 
31
              <color>YELLOW</color>
 
32
            </unstableThreshold>
 
33
{% if "flash" in project or "default" in project %}
 
34
            <failureThreshold>
 
35
              <name>FAILURE</name>
 
36
              <ordinal>2</ordinal>
 
37
              <color>RED</color>
 
38
            </failureThreshold>
 
39
{% endif %}
 
40
          </block>
 
41
          <buildAllNodesWithLabel>false</buildAllNodesWithLabel>
 
42
        </hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
 
43
      </configs>
 
44
    </hudson.plugins.parameterizedtrigger.TriggerBuilder>
 
45
{% endfor %}
 
46
{% endblock %}
 
47
{% block artifactblock %}{% endblock %}
 
48
{% block descriptionsetter %}{% endblock %}
 
49
{% block buildpublisher %}{% endblock %}
 
50
{% block mailer %}{% endblock %}
 
51
{% block locks %}{% endblock %}