PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/hudson-core/src/main/resources/hudson/model/BuildAuthorizationToken/config.jelly

http://github.com/hudson/hudson
Unknown | 48 lines | 43 code | 5 blank | 0 comment | 0 complexity | c12d4ad349f2d07ceb98baa442ad2800 MD5 | raw file
 1<!--
 2The MIT License
 3
 4Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
 5Eric Lefevre-Ardant, Seiji Sogabe
 6
 7Permission is hereby granted, free of charge, to any person obtaining a copy
 8of this software and associated documentation files (the "Software"), to deal
 9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23THE SOFTWARE.
24-->
25
26<!--
27  Pseudo trigger configuration.
28  Note that it is the object that owns BuildAuthorizationToken
29-->
30<?jelly escape-by-default='true'?>
31<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
32  <j:if test="${app.useSecurity}">
33    <f:optionalBlock name="pseudoRemoteTrigger"
34        help="/help/project-config/triggerRemotely.html"
35        title="${%Trigger builds remotely} (${%e.g., from scripts})"
36        checked="${it.authToken!=null}">
37      <f:entry title="${%Authentication Token}">
38        <f:textbox name="authToken" value="${it.authToken.token}" />
39        ${%Use the following URL to trigger build remotely:}
40        <tt>HUDSON_URL</tt>/${it.url}build?token=<tt>TOKEN_NAME</tt>
41        ${%or}
42        /buildWithParameters?token=<tt>TOKEN_NAME</tt>
43        <br/>
44        ${%Optionally append &lt;tt>&amp;cause=Cause+Text&lt;/tt> to provide text that will be included in the recorded build cause.}
45      </f:entry>
46  </f:optionalBlock>
47  </j:if>
48</j:jelly>