~cprov/uci-engine/tarmac-multienv

« back to all changes in this revision

Viewing changes to cupstream2distro/citrain/manual/jenkins-templates/prepare-silo.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>Prepare and attribute a silo</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-unity</permission>
 
15
      <permission>hudson.model.Item.Cancel:ubuntu-unity</permission>
 
16
      <permission>hudson.model.Item.Build:ubuntu-unity</permission>
 
17
    </hudson.security.AuthorizationMatrixProperty>
 
18
    <hudson.model.ParametersDefinitionProperty>
 
19
      <parameterDefinitions>
 
20
        <hudson.model.StringParameterDefinition>
 
21
          <name>REQUEST_ID</name>
 
22
          <description>Request ID from the spreadsheet (mandatory)</description>
 
23
          <defaultValue></defaultValue>
 
24
        </hudson.model.StringParameterDefinition>
 
25
        <hudson.model.StringParameterDefinition>
 
26
          <name>SERIES</name>
 
27
          <description>Publish for this series (empty to reconfigure if doesn't match default value)</description>
 
28
          <defaultValue></defaultValue>
 
29
        </hudson.model.StringParameterDefinition>
 
30
        <hudson.model.StringParameterDefinition>
 
31
          <name>DEST</name>
 
32
          <description>Set destination ppa if not Ubuntu archive</description>
 
33
          <defaultValue></defaultValue>
 
34
        </hudson.model.StringParameterDefinition>
 
35
        <hudson.model.BooleanParameterDefinition>
 
36
          <name>RECONFIGURE_SILO</name>
 
37
          <description>Don't instantiante a new silo, but reconfigure that one</description>
 
38
          <defaultValue>false</defaultValue>
 
39
        </hudson.model.BooleanParameterDefinition>
 
40
        <hudson.model.BooleanParameterDefinition>
 
41
          <name>IGNORECONFLICTS</name>
 
42
          <description>Ignore conflicting components in multiple silos. This should only be used in very rare and identified case. Both silos owners need to be aware about it as the second one will have to rebuild and retest.</description>
 
43
          <defaultValue>false</defaultValue>
 
44
        </hudson.model.BooleanParameterDefinition>
 
45
        <hudson.model.BooleanParameterDefinition>
 
46
          <name>USE_PREPROD_SILO</name>
 
47
          <description>Assign a silo with preproduction CI Train code</description>
 
48
          <defaultValue>false</defaultValue>
 
49
        </hudson.model.BooleanParameterDefinition>
 
50
        <hudson.model.BooleanParameterDefinition>
 
51
          <name>DEBUG</name>
 
52
          <description>Debug mode</description>
 
53
          <defaultValue>false</defaultValue>
 
54
        </hudson.model.BooleanParameterDefinition>
 
55
      </parameterDefinitions>
 
56
    </hudson.model.ParametersDefinitionProperty>
 
57
  </properties>
 
58
  <scm class="hudson.scm.NullSCM"/>
 
59
  <canRoam>false</canRoam>
 
60
  <disabled>false</disabled>
 
61
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
 
62
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
 
63
  <triggers class="vector"/>
 
64
  <builders>
 
65
    <hudson.tasks.Shell>
 
66
      <command>#!/bin/bash -eu
 
67
export LANG=en_US.UTF-8
 
68
export WORKSPACE="$PWD
 
69
"
 
70
OPTS=""
 
71
REQUEST_ID=${REQUEST_ID-}
 
72
SERIES=${SERIES-}
 
73
DEST=${DEST-}
 
74
 
 
75
if [ ! -z "$SERIES" ]; then
 
76
  OPTS="$OPTS --series $SERIES"
 
77
fi
 
78
if [ ! -z "$DEST" ]; then
 
79
  OPTS="$OPTS --destppa $DEST"
 
80
fi
 
81
if [ "${RECONFIGURE_SILO}"  == "true" ]; then
 
82
  OPTS="$OPTS --reconfiguresilo"
 
83
fi
 
84
if [ "$IGNORECONFLICTS" == "true" ]; then
 
85
  OPTS="$OPTS --ignore-conflicts"
 
86
fi
 
87
if [ "$USE_PREPROD_SILO" == "true" ]; then
 
88
  OPTS="$OPTS --use-preprod-silo"
 
89
fi
 
90
if [ "$DEBUG" == "true" ]; then
 
91
  OPTS="$OPTS --debug"
 
92
fi
 
93
 
 
94
cd # go to home directory
 
95
{{ BINDIR }}/prepare-silo-using-spreadsheet-info --request-id ${REQUEST_ID} $OPTS
 
96
</command>
 
97
    </hudson.tasks.Shell>
 
98
  </builders>
 
99
  <publishers>
 
100
  </publishers>
 
101
  <buildWrappers/>
 
102
</project>