Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 43e13582a0622e5f12702f58e1e0f9525a2b0817 (plain) (blame)
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define">
    
    <st:header name="Expires" value="0" />
    <st:contentType value="text/html;charset=UTF-8" />
    
    <j:set var="rootURL" value="${request.contextPath}" />
    <j:set var="imagesURL"  value="${rootURL}/images" />
    <j:set var="cssURL"  value="${rootURL}/css" />
    <j:set var="scriptsURL"  value="${rootURL}/scripts" />
    
    <html>
        <head>
            <link href="${cssURL}/jquery-ui-1.8.18.css" type="text/css" rel="stylesheet" />
            <script src="${scriptsURL}/jquery-1.6.4.min.js" type="text/javascript"></script>
            <script src="${scriptsURL}/jquery-ui-1.8.18.min.js" type="text/javascript"></script>
    
            <script type="text/javascript"> 
                var imageRoot = '${imagesURL}'; 
                var proxyNeeded = ${it.isProxyNeeded()};
                var needsAdminLogin = ${it.needsAdminLogin()};
                var securitySet = needsAdminLogin;
                var canFinish = false;
                var loginUrl = "${rootURL}/${it.hudsonSecurityManager.securityRealm.authenticationGatewayUrl}";
            </script>
             
            <link href="${cssURL}/init-setup.css" type="text/css" rel="stylesheet" />
            <script src="${scriptsURL}/init-setup.js" type="text/javascript"></script>
        </head>
    
        <body>
            <div id="wrapper">
                <div class="site clearfix">
                    <div class="container">
                        <span style="width:100%; text-align:center">
                            <h1 style="margin-top:4em; color:#5C3566">
                                Hudson CI Server Initial Setup 
                                <a href="http://wiki.eclipse.org/Hudson-ci/features/Initial_Setup" target="_blank"> 
                                    <img src="${imagesURL}/16x16/help.png"/>
                                </a>
                            </h1>
                        </span>
                        <ul id="installList" class="setup">
                            
                            <li class="mandatory">
                                <h3>
                                    Mandatory Plugins
                                </h3>
                                <p class="description">
                                    These plugins must be installed for Hudson to work properly.
                                </p>
                                <div class="body">
                                    <div class="items-container">
                                        
                                        <table width="100%" border="0" id="mandatoryPlugins" cellpadding="10">
                                            <j:forEach var="p" items="${it.installableMandatoryPlugins}">
                                                <tr>
                                                    <td class="column1">
                                                        <input type="checkbox" disabled="disabled" checked="true" value="${p.name}"/>
                                                        <img id="${p.name}"  style="display:none;"/>
                                                    </td>
                                                    <td class="column2">
                                                        <div>
                                                            <a href="${p.wikiUrl}" target="_blank">
                                                                ${p.displayName}
                                                            </a>
                                                        </div>
                                                        <div class="excerpt" style="padding-top: 5px;">
                                                            <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                        </div>
                                                    </td>
                                                    <td class="column3" style="white-space:nowrap">
                                                        ${p.version}
                                                    </td>
                                                    <td class="column4"></td>
                                                </tr>
                                            </j:forEach>
                                            <j:forEach var="p" items="${it.updatableMandatoryPlugins}">
                                                <tr>
                                                    <td class="column1">
                                                        <input type="checkbox" disabled="disabled" checked="true" value="${p.name}"/>
                                                        <img id="${p.name}" style="display:none;"/>
                                                    </td>
                                                    <td class="column2">
                                                        <div>
                                                            <a href="${p.wikiUrl}" target="_blank">
                                                                ${p.displayName}
                                                            </a>
                                                        </div>
                                                        <div class="excerpt" style="padding-top: 5px;">
                                                            <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                        </div>
                                                    </td>
                                                    <td class="column3" style="white-space:nowrap">
                                                        ${p.version}
                                                    </td>
                                                    <td class="column4" style="white-space:nowrap">
                                                        ${it.getInstalled(p).version} (Installed)
                                                    </td>
                                                </tr>
                                            </j:forEach>
                                          
                                            <j:forEach var="p" items="${it.installedMandatoryPlugins}">
                                                <tr>
                                                    <td class="column1">
                                                        <img src="${imagesURL}/green-check.jpg" alt=""/>
                                                    </td>
                                                    <td class="column2">
                                                        <div>
                                                            <a href="${p.wikiUrl}" target="_blank" style="color:gray">
                                                                ${p.displayName}
                                                            </a>
                                                        </div>
                                                        <div class="excerpt" style="padding-top: 5px;">
                                                            <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                        </div>
                                                    </td>
                                                    <td class="column3" style="white-space:nowrap; color:gray">
                                                        No update available
                                                    </td>
                                                    <td class="column4" style="white-space:nowrap; color:gray">
                                                        ${it.getInstalled(p).version} (Installed)
                                                    </td>
                                                </tr>
                                            </j:forEach>
                                            
                                        </table>
                                    </div>
                                </div>
                            </li>
                            <j:if test="${it.updatablePlugins.size() > 0}">
                                <li class="updates">
                                    <h3>
                                        Plugin Updates
                                    </h3>
                                    <p class="description">
                                        Updates are available for the following plugins. If you are upgrading from previous version of Hudson, we highly recommend to update the plugins for this version of Hudson.
                                    </p>
                                    <div class="body">
                                        <div class="items-container">
                                        
                                            <table width="100%" border="0" id="updatablePlugins" cellpadding="10">
                                                <j:forEach var="p" items="${it.updatablePlugins}">
                                                    <tr>
                                                        <td class="column1">
                                                            <j:if test="${it.getInstalled(p).isDisabled()}">
                                                                <input type="checkbox" value="${p.name}"/>
                                                            </j:if>
                                                            <j:if test="${!it.getInstalled(p).isDisabled()}">
                                                                <input type="checkbox" checked="true"  value="${p.name}"/>
                                                            </j:if>
                                                 
                                                            <img id="${p.name}" style="display:none;"/>
                                                        </td>
                                                        <td class="column2">
                                                            <div>
                                                                <a href="${p.wikiUrl}" target="_blank">
                                                                    ${p.displayName}
                                                                </a>
                                                            </div>
                                                            <div class="excerpt" style="padding-top: 5px;">
                                                                <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                            </div>
                                                        </td>
                                                        <td class="column3" style="white-space:nowrap">
                                                            ${p.version}
                                                        </td>
                                                        <td class="column4" style="white-space:nowrap">
                                                            <j:if test="${it.getInstalled(p).isDisabled()}">
                                                                ${it.getInstalled(p).version} (Disabled)
                                                            </j:if>
                                                            <j:if test="${!it.getInstalled(p).isDisabled()}">
                                                                ${it.getInstalled(p).version} (Installed)
                                                            </j:if>
                                                        </td>
                                                    </tr>
                                                </j:forEach>                
                                            </table>
                                        </div>
                                    </div>
                                </li>
                            </j:if>
                            
                            <j:if test="${it.installableFeaturedPlugins.size() > 0}">
                            
                                <li class="featured">
                                    <h3>
                                        Featured Plugins
                                    </h3>
                                    <p class="description">
                                        Following are featured plugins. They are tested and certified by Hudson QA team.
                                    </p>
                                    <div class="body">
                                        <div class="items-container">
                                        
                                            <table width="100%" border="0" id="featuredPlugins" cellpadding="10">
                                                <j:forEach var="p" items="${it.installableFeaturedPlugins}">
                                                    <tr>
                                                        <td class="column1">
                                                            <input type="checkbox" value="${p.name}"/>
                                                            <img id="${p.name}" style="display:none;"/>
                                                        </td>
                                                        <td class="column2">
                                                            <div>
                                                                <a href="${p.wikiUrl}" target="_blank">
                                                                    ${p.displayName}
                                                                </a>
                                                            </div>
                                                            <div class="excerpt" style="padding-top: 5px;">
                                                                <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                            </div>
                                                        </td>
                                                        <td class="column3" style="white-space:nowrap">
                                                            ${p.version}
                                                        </td>
                                                        <td class="column4"></td>
                                                    </tr>
                                                </j:forEach>
                                            </table>
                                        </div>
                                    </div>
                                </li>
                            
                            </j:if>
                    
                            <j:if test="${it.installableRecommendedPlugins.size() > 0}">
                                <li class="recommended">
                                    <h3>
                                        Recommended Plugins
                                    </h3>
                                    <p class="description">
                                        Following plugins are recommended. They are maintained by Hudson community developers and widely used.
                                    </p>
                                    <div class="body">
                                        <div class="items-container">
                                        
                                            <table width="100%" border="0" id="recommendedPlugins" cellpadding="10">
                                                <j:forEach var="p" items="${it.installableRecommendedPlugins}">
                                                    <tr>
                                                        <td class="column1">
                                                            <input type="checkbox" value="${p.name}"/>
                                                            <img id="${p.name}" style="display:none;"/>
                                                        </td>
                                                        <td class="column2">
                                                            <div>
                                                                <a href="${p.wikiUrl}" target="_blank">
                                                                    ${p.displayName}
                                                                </a>
                                                            </div>
                                                            <div class="excerpt" style="padding-top: 5px;">
                                                                <j:out value="${it.markupFormatter.translate(p.description)}" />
                                                            </div>
                                                        </td>
                                                        <td class="column3" style="white-space:nowrap">
                                                            ${p.version}
                                                        </td>
                                                        <td class="column4"></td>
                                                    </tr>
                                                </j:forEach>
                                             
                                            </table>
                                        </div>
                                    </div>
                                </li> 
                            </j:if>
                    
                            <li id="proxySetup">
                                <h3>
                                    ${%HTTP Proxy Configuration}
                                </h3>
                                <p class="description">
                                    For installing the plugins, Hudson server needs to connect to the internet. Check your HTTP proxy settings. 
                                </p>
                                <div class="body">
                                    <div class="items-container">
                                             
                                        <form id="proxyForm">
                                            <label for="proxy.server">Proxy Server</label>
                                            <input type="text" name="proxy.server" value="${it.proxyConfig.name}" />
                                            <br/>
                                    
                                            <label for="proxy.port">Proxy Port</label>
                                            <input type="text" name="proxy.port" value="${it.proxyConfig.port}" />
                                            <br/>
                                    
                                            <label for="proxy.noProxyFor">No Proxy for</label>
                                            <input type="text" name="proxy.noProxyFor" value="${it.proxyConfig.noProxyFor}" /> 
                                            <br/>
                                    
                                            <input style="width: 10px;" id="proxyAuth" name="proxy.authNeeded" type="checkbox" checked="${it.proxyConfig.authNeeded}"/>
                                            Proxy Needs Authorization
                                            <br/>
                                     
                                            <span id="proxyUser">
                                                <label for="proxy.userName">Username</label>
                                                <input name="proxy.userName" type="text" size="20" value="${it.proxyConfig.userName}"/>
                                            </span>
                                            <br/>
                                    
                                            <span id="proxyPassword">
                                                <label for="proxy.password">Password</label>
                                                <input name="proxy.password" type="password" value="${it.proxyConfig.password}"/>
                                            </span>
                                            <br/>
                                    
                                            <div style="margin-left: 500px;"> 
                                                <input style="width: 150px;" type="button" id="proxySubmitButton" value="${%Test and Setup}" />
                                            </div>
                                            <br style="clear:both"/>
                                            <span id="proxyMsg">
                                                <!-- Proxy operation message injected here -->
                                            </span>
                                        </form>    
                                    </div>
                                </div>
                            </li>
                    
                        </ul>
                        <div>
                            <span id="infoMsg">
                                <!-- Message injectd here-->
                            </span> 
                            <p id="loginNeededMsg">
                                Note: You must 
                                <a id="loginLink" href="#" onClick="showLoginDialog(); return false;">login</a> as administrator to install the plugins.
                            </p>
                            <div>
                                <ul id="buttonBar">
                                    <li>
                                        <input type="button" id="finishButton" value="${%Finish}" />
                                    </li>
                                    <li>
                                        <input type="button" id="installButton" value="${%Install}" />
                                    </li>
                                </ul>
                                <div id="installProgress"> 
                                    <span>Installing .. </span>
                                    <img src="${imagesURL}/progressbar.gif" style="margin-bottom: -10px; margin-left: 5px;"/>
                                </div>
                            </div>
                             
                            <div>
                                <span id="instalMandatoryMsg">
                                    All Mandatory Plugins must be installed first. 
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    
            <div id="loginDialog" title="Login" style="display:none; cursor: default">
                <span>${%Admin access required to install the plugins. Login as admin.}</span>

                <form id="loginForm"  style="text-size:smaller">
                    <label for="j_username">${%User}</label>
                    <input type="text" name="j_username" id="j_username" />
                    <br/>
                    <label for="j_password">${%Password}</label>
                    <input  type="password" name="j_password" id="j_password"/>
                </form>

                <div id="loginMsg">
                    <!-- Message ijected here -->
                </div>
            </div>
        </body>
    </html>     
</j:jelly>

Back to the top