~pwlars/ubuntu-test-cases/krillin-recovery

« back to all changes in this revision

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

  • Committer: Paul Larson
  • Date: 2014-10-31 03:04:55 UTC
  • Revision ID: paul.larson@canonical.com-20141031030455-12euilmxkqb3g0b1
Convert the devel-proposed jobs to run as vivid

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "touch-base.xml.jinja2" %}
2
 
{% block triggers %}
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<com.cloudbees.plugins.flow.BuildFlow>
 
3
  <actions/>
 
4
  <description>
 
5
&lt;pre&gt;
 
6
#NOTE: Automatically created from a script as part of daily smoke testing&#xd;
 
7
  {{branch}}&#xd;
 
8
&lt;/pre&gt;
 
9
  </description>
 
10
  <keepDependencies>false</keepDependencies>
 
11
  <properties>
 
12
    <hudson.model.ParametersDefinitionProperty>
 
13
      <parameterDefinitions>
 
14
        <hudson.model.StringParameterDefinition>
 
15
          <name>sleep</name>
 
16
          <description>Seconds to sleep before starting the job
 
17
          </description>
 
18
          <defaultValue>{{ wait }}</defaultValue>
 
19
        </hudson.model.StringParameterDefinition>
 
20
      </parameterDefinitions>
 
21
    </hudson.model.ParametersDefinitionProperty>
 
22
    <hudson.plugins.throttleconcurrents.ThrottleJobProperty>
 
23
      <maxConcurrentPerNode>0</maxConcurrentPerNode>
 
24
      <maxConcurrentTotal>0</maxConcurrentTotal>
 
25
      <throttleEnabled>false</throttleEnabled>
 
26
      <throttleOption>project</throttleOption>
 
27
    </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
 
28
    <hudson.plugins.build__publisher.ExternalProjectProperty/>
 
29
  </properties>
 
30
  <scm class="hudson.scm.NullSCM"/>
 
31
  <assignedNode>master</assignedNode>
 
32
  <canRoam>false</canRoam>
 
33
  <disabled>false</disabled>
 
34
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
 
35
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
 
36
{%if trigger_url %}
3
37
  <triggers class="vector">
4
38
    <com.redfin.hudson.UrlChangeTrigger>
5
39
      <spec></spec>
6
40
      <url>{{trigger_url}}</url>
7
41
    </com.redfin.hudson.UrlChangeTrigger>
8
42
  </triggers>
9
 
{% endblock %}
10
 
{% block shellblock %}{% endblock %}
11
 
{% block extrasteps %}
 
43
{% endif %}
 
44
  <concurrentBuild>false</concurrentBuild>
 
45
  <builders/>
 
46
  <publishers/>
 
47
  <buildWrappers>
 
48
      <hudson.plugins.build__timeout.BuildTimeoutWrapper>
 
49
        <timeoutMinutes>300</timeoutMinutes>
 
50
      <failBuild>true</failBuild>
 
51
      <writingDescription>false</writingDescription>
 
52
      <timeoutPercentage>0</timeoutPercentage>
 
53
      <timeoutType>absolute</timeoutType>
 
54
      <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
 
55
    </hudson.plugins.build__timeout.BuildTimeoutWrapper>
 
56
  </buildWrappers>
 
57
  <dsl><![CDATA[
 
58
// give the image time to show up before running tests
 
59
out.println("sleeping for a bit")
 
60
def sleep = build.environment.get("sleep").toLong()
 
61
build.sleep(sleep * 1000)
 
62
 
 
63
ignore(UNSTABLE) {
 
64
    join = parallel ([
 
65
{% for x in range(num_workers) %}
 
66
        worker_{{x}}:  { build("{{smoke_job}}", worker_idx: {{x}}, workers: {{num_workers}}) },
 
67
{% endfor %}
 
68
    ])
 
69
}
 
70
{% if projects %}
 
71
out.println("kicking off downstream projects in parellel")
 
72
install_url = build.environment.get("HUDSON_URL") + join.worker_0.lastBuild.build.url
 
73
parallel (
12
74
{% 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 "install-and-boot" 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 "install-and-boot" 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>
 
75
    {build("{{project}}", INSTALL_URL: install_url)},
45
76
{% endfor %}
46
 
{% endblock %}
47
 
{% block timeout %}
48
 
  <timeoutMinutes>300</timeoutMinutes>
49
 
{% endblock timeout %}
50
 
{% block artifactblock %}{% endblock %}
51
 
{% block descriptionsetter %}{% endblock %}
52
 
{% block buildpublisher %}{% endblock %}
53
 
{% block mailer %}{% endblock %}
54
 
{% block locks %}{% endblock %}
 
77
)
 
78
{% endif %}
 
79
  ]]></dsl>
 
80
</com.cloudbees.plugins.flow.BuildFlow>