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