1
<?xml version='1.0' encoding='UTF-8'?>
4
<description>Prepare and attribute a silo</description>
6
<daysToKeep>15</daysToKeep>
7
<numToKeep>-1</numToKeep>
8
<artifactDaysToKeep>-1</artifactDaysToKeep>
9
<artifactNumToKeep>-1</artifactNumToKeep>
11
<keepDependencies>false</keepDependencies>
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>
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>
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>
52
<description>Debug mode</description>
53
<defaultValue>false</defaultValue>
54
</hudson.model.BooleanParameterDefinition>
55
</parameterDefinitions>
56
</hudson.model.ParametersDefinitionProperty>
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"/>
66
<command>#!/bin/bash -eu
67
export LANG=en_US.UTF-8
68
export WORKSPACE="$PWD
71
REQUEST_ID=${REQUEST_ID-}
75
if [ ! -z "$SERIES" ]; then
76
OPTS="$OPTS --series $SERIES"
78
if [ ! -z "$DEST" ]; then
79
OPTS="$OPTS --destppa $DEST"
81
if [ "${RECONFIGURE_SILO}" == "true" ]; then
82
OPTS="$OPTS --reconfiguresilo"
84
if [ "$IGNORECONFLICTS" == "true" ]; then
85
OPTS="$OPTS --ignore-conflicts"
87
if [ "$USE_PREPROD_SILO" == "true" ]; then
88
OPTS="$OPTS --use-preprod-silo"
90
if [ "$DEBUG" == "true" ]; then
94
cd # go to home directory
95
{{ BINDIR }}/prepare-silo-using-spreadsheet-info --request-id ${REQUEST_ID} $OPTS