1
<?xml version='1.0' encoding='UTF-8'?>
4
<description>Merge and clean "{{ SILO_NAME }}" projects</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-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>
51
<description>Debug mode</description>
52
<defaultValue>false</defaultValue>
53
</hudson.model.BooleanParameterDefinition>
54
</parameterDefinitions>
55
</hudson.model.ParametersDefinitionProperty>
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"/>
65
<command>#!/bin/bash -eu
66
export LANG=en_US.UTF-8
67
export WORKSPACE="$PWD"
69
cd {{ SILOS_DIR }}/{{ SILO_NAME }}
72
if [ "${ONLY_FREE_SILO}" == "true" ]; then
73
OPTS="$OPTS --onlyfreesilo"
75
if [ "${IGNORE_MISSINGPROJECTS}" == "true" ]; then
76
OPTS="$OPTS --ignoremissingprojects"
78
if [ "${IGNORE_PACKAGES_NOTINDEST}" == "true" ]; then
79
OPTS="$OPTS --ignorepackagesnotindest"
81
if [ "${IGNORE_STEP}" == "true" ]; then
82
OPTS="$OPTS --ignorestep"
84
if [ "$DEBUG" == "true" ]; then
88
{{ BINDIR }}/merge-clean $OPTS
95
<org.jenkinsci.plugins.builduser.BuildUser plugin="build-user-vars-plugin@1.3"/>