1
<?xml version="1.0" encoding="UTF-8"?><project>
1
<?xml version='1.0' encoding='UTF-8'?>
3
4
<description><p>Watch for git commits and kick off charmstore charm upload/release paths.</p>
4
5
<p><i>Dynamically Generated Job - Do not edit through the Jenkins Web UI. You will lose your changes.</i></p>
5
6
<!-- Managed by Jenkins Job Builder --></description>
6
7
<keepDependencies>false</keepDependencies>
7
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
8
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
9
<concurrentBuild>false</concurrentBuild>
10
<assignedNode>slave</assignedNode>
11
<canRoam>false</canRoam>
13
9
<hudson.model.ParametersDefinitionProperty>
14
10
<parameterDefinitions>
20
16
<hudson.model.StringParameterDefinition>
21
17
<name>GIT_BRANCH</name>
22
18
<description>Git branch. Generally master or stable/nn.nn.</description>
23
<defaultValue>stable/16.10</defaultValue>
19
<defaultValue>stable/17.02</defaultValue>
24
20
</hudson.model.StringParameterDefinition>
25
21
<hudson.model.BooleanParameterDefinition>
26
22
<name>CHARM_PUSH_DRY_RUN</name>
30
26
<hudson.model.StringParameterDefinition>
31
27
<name>DISPLAY_NAME</name>
32
28
<description>Optional string to add to the Build Name of the job.</description>
29
<defaultValue></defaultValue>
34
30
</hudson.model.StringParameterDefinition>
35
31
</parameterDefinitions>
36
32
</hudson.model.ParametersDefinitionProperty>
33
<org.jvnet.hudson.plugins.shelveproject.ShelveProjectProperty plugin="shelve-project-plugin@1.5"/>
38
<scm class="hudson.plugins.git.GitSCM">
35
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.3">
39
36
<configVersion>2</configVersion>
40
37
<userRemoteConfigs>
41
38
<hudson.plugins.git.UserRemoteConfig>
46
43
</userRemoteConfigs>
48
45
<hudson.plugins.git.BranchSpec>
49
<name>stable/16.10</name>
46
<name>stable/17.02</name>
50
47
</hudson.plugins.git.BranchSpec>
53
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
54
<disableSubmodules>false</disableSubmodules>
55
<recursiveSubmodules>false</recursiveSubmodules>
56
49
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
57
<authorOrCommitter>false</authorOrCommitter>
58
<wipeOutWorkspace>true</wipeOutWorkspace>
59
<pruneBranches>false</pruneBranches>
60
<remotePoll>true</remotePoll>
61
50
<gitTool>Default</gitTool>
62
51
<submoduleCfg class="list"/>
63
<relativeTargetDir>manila-generic</relativeTargetDir>
67
<skipTag>true</skipTag>
69
<useShallowClone>true</useShallowClone>
70
<ignoreNotifyCommit>false</ignoreNotifyCommit>
72
53
<hudson.plugins.git.extensions.impl.CleanBeforeCheckout/>
73
54
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
55
<hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
56
<relativeTargetDir>manila-generic</relativeTargetDir>
57
</hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
58
<hudson.plugins.git.extensions.impl.CloneOption>
59
<shallow>true</shallow>
60
<noTags>false</noTags>
61
<reference></reference>
63
<honorRefspec>false</honorRefspec>
64
</hudson.plugins.git.extensions.impl.CloneOption>
76
<triggers class="vector">
67
<assignedNode>slave</assignedNode>
68
<canRoam>false</canRoam>
69
<disabled>false</disabled>
70
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
71
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
77
73
<hudson.triggers.SCMTrigger>
78
74
<spec>H/10 * * * *</spec>
79
75
<ignorePostCommitHooks>true</ignorePostCommitHooks>
80
76
</hudson.triggers.SCMTrigger>
78
<concurrentBuild>false</concurrentBuild>
83
80
<hudson.tasks.Shell>
84
81
<command>#!/bin/bash -e
85
82
# Ensure we have a checkout of UOSCI code
86
83
if [[ ! -f $OSCI_ROOT/job-parts/osci_job_common.sh ]]; then
87
echo " - Removing checkout @ $OSCI_ROOT if it exists"
84
echo " - Removing checkout @ $OSCI_ROOT if it exists"
88
85
rm -rf $OSCI_ROOT ||:
89
echo " + Creating new lightweight checkout of $OSCI_REPO @ $OSCI_ROOT."
86
echo " + Creating new lightweight checkout of $OSCI_REPO @ $OSCI_ROOT."
90
87
bzr co --lightweight $OSCI_REPO $OSCI_ROOT
91
echo "revno: $(bzr revno $OSCI_ROOT)"
88
echo "revno: $(bzr revno $OSCI_ROOT)"
94
91
</hudson.tasks.Shell>
102
99
<hudson.tasks.ArtifactArchiver>
103
100
<artifacts>*, logs/*</artifacts>
104
<latestOnly>false</latestOnly>
105
101
<allowEmptyArchive>true</allowEmptyArchive>
102
<onlyIfSuccessful>false</onlyIfSuccessful>
106
103
<fingerprint>true</fingerprint>
107
104
<defaultExcludes>true</defaultExcludes>
105
<caseSensitive>true</caseSensitive>
108
106
</hudson.tasks.ArtifactArchiver>
109
<hudson.plugins.emailext.ExtendedEmailPublisher>
107
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.47">
110
108
<recipientList>openstack-charm-ci-watchers@lists.launchpad.net</recipientList>
111
109
<configuredTriggers>
112
110
<hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
112
<recipientList></recipientList>
115
113
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
116
114
<body>$PROJECT_DEFAULT_CONTENT</body>
117
<sendToRequester>false</sendToRequester>
118
<sendToDevelopers>false</sendToDevelopers>
119
<includeCulprits>false</includeCulprits>
120
<sendToRecipientList>true</sendToRecipientList>
116
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
117
</recipientProviders>
118
<attachBuildLog>false</attachBuildLog>
119
<compressBuildLog>false</compressBuildLog>
122
121
</hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
123
122
</configuredTriggers>
124
123
<contentType>text/plain</contentType>
125
124
<defaultSubject>[UOSCI] $DEFAULT_SUBJECT</defaultSubject>
126
125
<defaultContent>$DEFAULT_SUBJECT
127
${ENV,var="BASE_NAME"} ${ENV,var="DISPLAY_NAME"}
126
${ENV,var="BASE_NAME"} ${ENV,var="DISPLAY_NAME"}
128
127
${GIT_URL} (${GIT_BRANCH})
131
130
Charm store refs pushed and released:
132
${FILE,path="cs_refs_released.txt"}
131
${FILE,path="cs_refs_released.txt"}
133
132
</defaultContent>
134
133
<attachmentsPattern>cs_refs_released.txt</attachmentsPattern>
135
134
<presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
136
135
<attachBuildLog>false</attachBuildLog>
136
<compressBuildLog>false</compressBuildLog>
137
<replyTo>$DEFAULT_REPLYTO</replyTo>
137
138
<saveOutput>false</saveOutput>
138
139
<disabled>false</disabled>
139
<replyTo>$DEFAULT_REPLYTO</replyTo>
140
140
</hudson.plugins.emailext.ExtendedEmailPublisher>