config.jelly 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!--
  2. The MIT License
  3. Copyright (c) 2011, CloudBees, Inc.
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. -->
  20. <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" >
  21. <table width="100%">
  22. <f:entry title="${%AMI ID}" field="ami">
  23. <f:textbox />
  24. </f:entry>
  25. <f:validateButton title="${%Check AMI}" progress="${%Checking...}" method="validateAmi" with="secretKey,accessId,region,ami" />
  26. <f:entry title="${%Instance Type}" field="type">
  27. <f:enum>${it.name()}</f:enum>
  28. </f:entry>
  29. <f:entry title="${%Description}" help="/help/system-config/master-slave/description.html" field="description">
  30. <f:textbox />
  31. </f:entry>
  32. <f:entry title="${%Availability Zone}" field="zone">
  33. <!-- this is preferred but there is a problem with making it work FRU 22 Feb 12
  34. See: https://groups.google.com/group/jenkinsci-dev/t/af37fa7fe2769b0c -->
  35. <!-- <f:select/>-->
  36. <f:textbox/>
  37. </f:entry>
  38. <f:entry title="${%Security group names}" field="securityGroups">
  39. <f:textbox/>
  40. </f:entry>
  41. <f:entry title="${%Remote FS root}" field="remoteFS">
  42. <f:textbox />
  43. </f:entry>
  44. <f:entry title="${%Remote user}" field="remoteAdmin">
  45. <f:textbox />
  46. </f:entry>
  47. <f:entry title="${%Root command prefix}" field="rootCommandPrefix">
  48. <f:textbox/>
  49. </f:entry>
  50. <f:entry title="${%Labels}" field="labelString">
  51. <f:textbox />
  52. </f:entry>
  53. <f:entry title="${%Idle termination time}" field="idleTerminationMinutes">
  54. <f:textbox default="30" />
  55. </f:entry>
  56. <f:entry title="${%Init script}" field="initScript">
  57. <f:textarea />
  58. </f:entry>
  59. <f:advanced>
  60. <f:entry title="${%User Data}" field="userData">
  61. <f:textarea />
  62. </f:entry>
  63. <f:entry title="${%Number of Executors}" field="numExecutors">
  64. <f:textbox />
  65. </f:entry>
  66. <f:entry title="${%JVM Options}" field="jvmopts">
  67. <f:textbox/>
  68. </f:entry>
  69. <f:entry title="${%Remote ssh port}" field="sshPort">
  70. <f:textbox />
  71. </f:entry>
  72. <f:entry title="${%Stop/Disconnect on Idle Timeout}" field="stopOnTerminate">
  73. <f:checkbox />
  74. </f:entry>
  75. <f:entry title="${%Subnet ID for VPC}" field="subnetId">
  76. <f:textbox />
  77. </f:entry>
  78. <f:entry title="${%Tags}" description="${%EC2 Tag/Value Pairs}">
  79. <f:repeatable field="tags">
  80. <st:include page="config.jelly" class="hudson.plugins.ec2.EC2Tag" />
  81. </f:repeatable>
  82. </f:entry>
  83. <f:entry title="${%Use private DNS}" field="usePrivateDnsName">
  84. <f:checkbox />
  85. </f:entry>
  86. <f:entry title="${%Instance Cap}" field="instanceCapStr">
  87. <f:textbox />
  88. </f:entry>
  89. </f:advanced>
  90. <f:entry title="">
  91. <div align="right">
  92. <f:repeatableDeleteButton />
  93. </div>
  94. </f:entry>
  95. </table>
  96. </j:jelly>