-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.xml
200 lines (200 loc) · 10.7 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
192
193
194
195
196
197
198
199
200
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description>This project will build a WebObjects Application and any frameworks that you specify as one Jenkins job instead of 
you needing to create one job for each framework and/or application.
<h3>Customizing Job Configuration</h3>
You will need to modify the Job configuration clicking on <a href="configure">Configure</a> and setting the following:
<ul>
<li>
<h4>SCM</h4>
You will need to specify one or more Git repositories to pull your projects from. <em>Note:</em> If your Application and Frameworks 
are in one Repository, this job assumes that they are at the same level in the directory hierarchy. If they are not 
you will need to make modifications to both this job and the setupWonderProjectWorkspace.sh script that this job calls.
</li>
<li>
<h4>Build Tasks</h4>
You will need to specify one Ant task per WebObjects Framework and Application, in dependency order, that this job needs to build.
</li>
</ul>
<h3>Runtime Parameters</h3>
Without changing the job configuration, you can:
<ul>
<li>Specify a custom "Deployment Name" for you Application</li>
<li>Specify the version of Apple WebObjects™ to build against</li>
<li>Specify the branch of Project Wonder.</li>
<li>Specify if the build is for testing or deployment:</li>
<ol>
<li><b>Test Build</b> (no embedded frameworks)</li>
<li><b>Deployment Build</b> (fully embedded System and Local frameworks)</li>
</ol>
</ul>
<b>NOTE:</b> this project is intended to work in tandem with the 
<a href="https://github.com/avendasora/WOJenkins_Job_InstallWOAndWOnder">InstallWOAndWOnder</a> Jenkins job. 
InstallWOAndWOnder will take care of downloading and installing WebObjects™ and cloning, building and installing Project WOnder
in the JENKINS_HOME/WOFrameworksRepository so that they are available for this job to use.</description>
<logRotator>
<daysToKeep>-1</daysToKeep>
<numToKeep>3</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>PROJECT_NAME</name>
<description>This is the name of the directory that contains the WebObjects application project that you want to build, i.e., the directory that contains the Sources, Components and Resources subdirectories). To specify frameworks that this application depends upon and should be built as part of this job then you will need to add additional Ant Tasks. Depending on your source code repository structure you may also need to add additional SCM to check them out into the "Projects" directory as well.</description>
<defaultValue>SimpleBlog</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>DEPLOYED_APPLICATION_NAME</name>
<description>This setting allows you to specify a different name for an Application when it is built. You <b>must</b> specify a value, even if it is the same as the PROJECT_NAME parameter above.</description>
<defaultValue>SimpleBlog</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>BUILD_TYPE</name>
<description><ul>
<li><b>Test Build</b> will override the settings defined in WOLips and will not embed any frameworks in the built application, it will only link to them.</li>
<li><b>Deployment</b> will obey the Deployment settings you defined for the project in WOLips, which should almost certainly be to embed both System and Local frameworks.</li>
</ul></description>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>Test Build</string>
<string>Deployment</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>WO_VERSION</name>
<description>This is the version of Apple™ WebObjects that you want to build against. It must have been already downloaded and installed in Jenkin's WOFrameworksRepository (JENKINS_HOME/WOFrameworkRepository). The easiest way to do this is by cloning and running the <a href="https://github.com/avendasora/WOJenkins_Job_InstallWOAndWOnder">InstallWOAndWOnder</a> Jenkins job.</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_GIT_REFERENCE</name>
<description>This is the branch of Wonder that you want to build against. This branch of Project WOnder must have been already built and installed in Jenkin's WOFrameworksRepository. The easiest way to do this is by cloning and running the <a href="https://github.com/avendasora/WOJenkins_Job_InstallWOAndWOnder">InstallWOAndWOnder</a> Jenkins job.</description>
<defaultValue>master</defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition>
<name>JAVA_COMPATIBILITY_VERSION</name>
<description></description>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>1.5</string>
<string>1.6</string>
<string>1.7</string>
<string>1.4</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/*:refs/remotes/origin/*</refspec>
<url>https://github.com/daveeed/SimpleBlog.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>master</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>Projects</relativeTargetDir>
<reference></reference>
<excludedRegions></excludedRegions>
<excludedUsers></excludedUsers>
<gitConfigName></gitConfigName>
<gitConfigEmail></gitConfigEmail>
<skipTag>false</skipTag>
<scmName>Project</scmName>
</hudson.plugins.git.GitSCM>
<hudson.plugins.git.GitSCM>
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
<refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
<url>https://github.com/avendasora/WOJenkins.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>master</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>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>true</blockBuildWhenUpstreamBuilding>
<triggers class="vector"/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>${WORKSPACE}/WOJenkins/Build/WonderProjects/WorkspaceSetupScripts/setupWonderProjectWorkspace.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>
<targets>build -verbose -propertyfile ${WORKSPACE}/Root/jenkins.build.properties -lib ${WORKSPACE}/Root/lib/woproject.jar</targets>
<buildFile>Projects/SimpleBlogLogic/build.xml</buildFile>
<properties>Projects/SimpleBlogLogic/</properties>
</hudson.tasks.Ant>
<hudson.tasks.Ant>
<targets>build -verbose -propertyfile ${WORKSPACE}/Root/jenkins.build.properties -lib ${WORKSPACE}/Root/lib/woproject.jar</targets>
<buildFile>Projects/${PROJECT_NAME}/build.xml</buildFile>
<properties>Projects/${PROJECT_NAME}/
project.name=${DEPLOYED_APPLICATION_NAME}</properties>
</hudson.tasks.Ant>
</builders>
<publishers>
<hudson.tasks.ArtifactArchiver>
<artifacts>**/dist/*.tar.gz</artifacts>
<latestOnly>false</latestOnly>
</hudson.tasks.ArtifactArchiver>
</publishers>
<buildWrappers/>
</project>