forked from avendasora/WOJenkins_Job_InstallWOAndWOnder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.xml
191 lines (191 loc) · 9.62 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description><p>This job automatically prepares a Jenkins build server to be able to build WebObjects projects by cloning the 
WOJenkins build scripts into this job's <a target="_new" href="ws/WOJenkins">workspace</a> and then uses them 
to do the following:</p>
<h3>Apple WebObjects™</h3>
<ol>
<li>Downloads <a target="_new" href="http://webobjects.mdimension.com/wolips/">WOInstaller.jar</a> from MDimension.</li>
<li>Downloads WebObjects 5.3.3 or 5.4.3 from Apple</li>
<li>Installs WebObjects frameworks in <code>${HUDSON_HOME}/WOFrameworksRepository/WebObjects</code></li>
<li>Downloads the current <a target="_new" href="http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/">
woproject.jar</a> from WOLips build server and installs it in <code>${HUDSON_HOME}/WOFrameworksRepository/WOProject</code> 
(needed for building any WebObjects application with Ant)</li>
</ol>
<h3>Project WOnder</h3>
<ol>
<li>Clones/Pulls the Project WOnder Git repository into <code>${HUDSON_HOME}/WOFrameworksRepository/ProjectWOnder/GitRepositoryClone</code>
so it can be used by all Wonder builds.</li>
<li>Clones/Pulls the specified branch of WOnder into this job's <a target="_new" href="ws/Wonder">workspace</a>. 
(By cloning again, multiple jobs can be building different versions of WOnder simultaneously.)</li>
<li>Builds and installs WOnder into the ${HUDSON_HOME}/WOFrameworksRepository/ProjectWOnder directory based on the selected BUILD_TARGETS.</li>
</ol>

<h4>NOTE:</h4>
<p>You should change the repository locations in this Job's <a target="_new" href="configure">configuration</a> for both Project WOnder and the WOJenkins to point to your own clones of each. You can run this job as-is, but both Project WOnder and
WOJenkins change regularly and you run the risk of this job breaking if you aren't using your own repositories.</p></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.ChoiceParameterDefinition>
<name>WO_VERSION</name>
<description>The version of WebObjects to build against or embed in your project.</description>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>5.4.3</string>
<string>5.3.3</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>WONDER_BRANCH</name>
<description>The branch of Wonder that you want to build. The default is <b>master</b> but it could set to <b>MyBranch</b> instead.</description>
<defaultValue>master</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>BUILD_TARGETS</name>
<description>Which Wonder build target do you want to run. For most projects the default <b>frameworks frameworks.install</b> is what you want.</description>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>frameworks frameworks.install</string>
<string>all</string>
<string>applications applications.install</string>
<string>examples examples.install</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="org.jenkinsci.plugins.multiplescms.MultiSCM">
<scms>
<hudson.plugins.git.GitSCM>
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
<refspec>+refs/heads/${WONDER_BRANCH}:refs/remotes/origin/${WONDER_BRANCH}</refspec>
<url>git://github.com/projectwonder/wonder.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>origin/${WONDER_BRANCH}</name>
</hudson.plugins.git.BranchSpec>
</branches>
<disableSubmodules>false</disableSubmodules>
<recursiveSubmodules>false</recursiveSubmodules>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<authorOrCommitter>false</authorOrCommitter>
<clean>true</clean>
<wipeOutWorkspace>false</wipeOutWorkspace>
<pruneBranches>false</pruneBranches>
<remotePoll>false</remotePoll>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
<gitTool>Default</gitTool>
<submoduleCfg class="list"/>
<relativeTargetDir>../../../WOFrameworksRepository/ProjectWOnder/GitRepositoryClone</relativeTargetDir>
<reference></reference>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
<gitConfigName></gitConfigName>
<gitConfigEmail></gitConfigEmail>
<skipTag>false</skipTag>
<scmName>Wonder</scmName>
</hudson.plugins.git.GitSCM>
<hudson.plugins.git.GitSCM>
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>WOFrameworksRepository</name>
<refspec>+refs/heads/${WONDER_BRANCH}:refs/remotes/WOFrameworksRepository/${WONDER_BRANCH}</refspec>
<url>${JENKINS_HOME}/WOFrameworksRepository/ProjectWOnder/GitRepositoryClone/</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>WOFrameworksRepository/${WONDER_BRANCH}</name>
</hudson.plugins.git.BranchSpec>
</branches>
<disableSubmodules>false</disableSubmodules>
<recursiveSubmodules>false</recursiveSubmodules>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<authorOrCommitter>false</authorOrCommitter>
<clean>false</clean>
<wipeOutWorkspace>false</wipeOutWorkspace>
<pruneBranches>false</pruneBranches>
<remotePoll>false</remotePoll>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
<gitTool>Default</gitTool>
<submoduleCfg class="list"/>
<relativeTargetDir>Wonder</relativeTargetDir>
<reference></reference>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
<gitConfigName></gitConfigName>
<gitConfigEmail></gitConfigEmail>
<skipTag>false</skipTag>
<scmName>WOFrameworksRepository_Wonder</scmName>
</hudson.plugins.git.GitSCM>
<hudson.plugins.git.GitSCM>
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
<refspec>+refs/heads/master:refs/remotes/origin/master</refspec>
<url>git://github.com/avendasora/WOJenkins.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>origin/master</name>
</hudson.plugins.git.BranchSpec>
</branches>
<disableSubmodules>false</disableSubmodules>
<recursiveSubmodules>false</recursiveSubmodules>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<authorOrCommitter>true</authorOrCommitter>
<clean>true</clean>
<wipeOutWorkspace>false</wipeOutWorkspace>
<pruneBranches>true</pruneBranches>
<remotePoll>false</remotePoll>
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
<gitTool>Default</gitTool>
<submoduleCfg class="list"/>
<relativeTargetDir>WOJenkins</relativeTargetDir>
<reference></reference>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
<gitConfigName></gitConfigName>
<gitConfigEmail></gitConfigEmail>
<skipTag>false</skipTag>
<scmName>WOJenkins</scmName>
</hudson.plugins.git.GitSCM>
</scms>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers class="vector">
<hudson.triggers.SCMTrigger>
<spec># Every Hour, On the Hour.
0 */1 * * *</spec>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>${WORKSPACE}/WOJenkins/Install/WebObjects/installWebObjects.sh
${WORKSPACE}/WOJenkins/Build/Wonder/WorkspaceSetupScripts/Git/setupWonderWorkspace.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>
<targets>${BUILD_TARGETS} -propertyfile ${WORKSPACE}/Root/jenkins.build.properties</targets>
<buildFile>${WORKSPACE}/Wonder/build.xml</buildFile>
</hudson.tasks.Ant>
</builders>
<publishers/>
<buildWrappers/>
</project>