~vila/ubuntu-test-cases/retry-apt-get-update

« back to all changes in this revision

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

  • Committer: Leo Arias
  • Date: 2014-11-10 19:28:56 UTC
  • mfrom: (345 touch)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: leo.arias@canonical.com-20141110192856-rgpksx9n9j0b39yl
Merged with the touch branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 %}
 
37
  <triggers class="vector">
 
38
    <com.redfin.hudson.UrlChangeTrigger>
 
39
      <spec></spec>
 
40
      <url>{{trigger_url}}</url>
 
41
    </com.redfin.hudson.UrlChangeTrigger>
 
42
  </triggers>
 
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 (
 
74
{% for project in projects %}
 
75
    {build("{{project}}", INSTALL_URL: install_url)},
 
76
{% endfor %}
 
77
)
 
78
{% endif %}
 
79
  ]]></dsl>
 
80
</com.cloudbees.plugins.flow.BuildFlow>