~larry-e-works/uci-engine/amqp-to-kombu

« back to all changes in this revision

Viewing changes to cupstream2distro/citrain/manual/jenkins-templates/merge-clean.xml.tmpl

  • Committer: Francis Ginther
  • Date: 2014-06-10 20:42:46 UTC
  • mto: This revision was merged to the branch mainline in revision 571.
  • Revision ID: francis.ginther@canonical.com-20140610204246-b1bsrik7nlcolqy7
Import lp:cupstream2distro rev 605.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<project>
 
3
  <actions/>
 
4
  <description>Merge and clean "{{ SILO_NAME }}" projects</description>
 
5
  <logRotator>
 
6
    <daysToKeep>15</daysToKeep>
 
7
    <numToKeep>-1</numToKeep>
 
8
    <artifactDaysToKeep>-1</artifactDaysToKeep>
 
9
    <artifactNumToKeep>-1</artifactNumToKeep>
 
10
  </logRotator>
 
11
  <keepDependencies>false</keepDependencies>
 
12
  <properties>
 
13
    <hudson.security.AuthorizationMatrixProperty>
 
14
      <permission>hudson.model.Item.Read:ubuntu-core-dev</permission>
 
15
      <permission>hudson.model.Item.Cancel:ubuntu-core-dev</permission>
 
16
      <permission>hudson.model.Item.Build:ubuntu-core-dev</permission>
 
17
      <permission>hudson.model.Item.Read:canonical-ci-eng</permission>
 
18
      <permission>hudson.model.Item.Cancel:canonical-ci-eng</permission>
 
19
      <permission>hudson.model.Item.Build:canonical-ci-eng</permission>
 
20
      <permission>hudson.model.Item.Read:ci-train-users</permission>
 
21
      <permission>hudson.model.Item.Cancel:ci-train-users</permission>
 
22
      <permission>hudson.model.Item.Build:ci-train-users</permission>
 
23
      <permission>hudson.model.Item.Read:ubuntu-unity</permission>
 
24
      <permission>hudson.model.Item.Cancel:ubuntu-unity</permission>
 
25
      <permission>hudson.model.Item.Build:ubuntu-unity</permission>
 
26
    </hudson.security.AuthorizationMatrixProperty>
 
27
    <hudson.model.ParametersDefinitionProperty>
 
28
      <parameterDefinitions>
 
29
        <hudson.model.BooleanParameterDefinition>
 
30
          <name>ONLY_FREE_SILO</name>
 
31
          <description>Only free the ppa and don't merge/check anything</description>
 
32
          <defaultValue>false</defaultValue>
 
33
        </hudson.model.BooleanParameterDefinition>
 
34
        <hudson.model.BooleanParameterDefinition>
 
35
          <name>IGNORE_MISSINGPROJECTS</name>
 
36
          <description>Ignore if some projects that are going to be merged back were not published. No merge will then be processed for those</description>
 
37
          <defaultValue>false</defaultValue>
 
38
        </hudson.model.BooleanParameterDefinition>
 
39
        <hudson.model.BooleanParameterDefinition>
 
40
          <name>IGNORE_PACKAGES_NOTINDEST</name>
 
41
          <description>Ignore if some packages are not published in the destination</description>
 
42
          <defaultValue>false</defaultValue>
 
43
        </hudson.model.BooleanParameterDefinition>
 
44
        <hudson.model.BooleanParameterDefinition>
 
45
          <name>IGNORE_STEP</name>
 
46
          <description>Ignore if previous step hasn't completed successfully</description>
 
47
          <defaultValue>false</defaultValue>
 
48
        </hudson.model.BooleanParameterDefinition>
 
49
        <hudson.model.BooleanParameterDefinition>
 
50
          <name>DEBUG</name>
 
51
          <description>Debug mode</description>
 
52
          <defaultValue>false</defaultValue>
 
53
        </hudson.model.BooleanParameterDefinition>
 
54
      </parameterDefinitions>
 
55
    </hudson.model.ParametersDefinitionProperty>
 
56
  </properties>
 
57
  <scm class="hudson.scm.NullSCM"/>
 
58
  <canRoam>false</canRoam>
 
59
  <disabled>false</disabled>
 
60
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
 
61
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
 
62
  <triggers class="vector"/>
 
63
  <builders>
 
64
    <hudson.tasks.Shell>
 
65
      <command>#!/bin/bash -eu
 
66
export LANG=en_US.UTF-8
 
67
export WORKSPACE="$PWD"
 
68
 
 
69
cd {{ SILOS_DIR }}/{{ SILO_NAME }}
 
70
 
 
71
OPTS=""
 
72
if [ "${ONLY_FREE_SILO}" == "true" ]; then
 
73
  OPTS="$OPTS --onlyfreesilo"
 
74
fi
 
75
if [ "${IGNORE_MISSINGPROJECTS}" == "true" ]; then
 
76
  OPTS="$OPTS --ignoremissingprojects"
 
77
fi
 
78
if [ "${IGNORE_PACKAGES_NOTINDEST}" == "true" ]; then
 
79
  OPTS="$OPTS --ignorepackagesnotindest"
 
80
fi
 
81
if [ "${IGNORE_STEP}" == "true" ]; then
 
82
  OPTS="$OPTS --ignorestep"
 
83
fi
 
84
if [ "$DEBUG" == "true" ]; then
 
85
  OPTS="$OPTS --debug"
 
86
fi
 
87
 
 
88
{{ BINDIR }}/merge-clean $OPTS
 
89
</command>
 
90
    </hudson.tasks.Shell>
 
91
  </builders>
 
92
  <publishers>
 
93
  </publishers>
 
94
  <buildWrappers>
 
95
    <org.jenkinsci.plugins.builduser.BuildUser plugin="build-user-vars-plugin@1.3"/>
 
96
  </buildWrappers>
 
97
</project>