Advertisement
Guest User

Untitled

a guest
Dec 27th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.70 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <project>
  3. <actions/>
  4. <description>Launch TokuMX EC2 instances, probably restoring from EBS snapshot.</description>
  5. <keepDependencies>false</keepDependencies>
  6. <properties>
  7. <hudson.model.ParametersDefinitionProperty>
  8. <parameterDefinitions>
  9. <hudson.model.TextParameterDefinition>
  10. <name>environment</name>
  11. <description></description>
  12. <defaultValue>recovery</defaultValue>
  13. </hudson.model.TextParameterDefinition>
  14. <hudson.model.StringParameterDefinition>
  15. <name>branch</name>
  16. <description>git branch to check out</description>
  17. <defaultValue>master</defaultValue>
  18. </hudson.model.StringParameterDefinition>
  19. <hudson.model.StringParameterDefinition>
  20. <name>ANSIBLE_INVENTORY</name>
  21. <description>Path to hosts file for use with ansible-pull</description>
  22. <defaultValue>ansible/hosts</defaultValue>
  23. </hudson.model.StringParameterDefinition>
  24. <hudson.model.StringParameterDefinition>
  25. <name>ANSIBLE_LOCAL_YAML_PATH</name>
  26. <description>Path to the local.yml file to pass to ansible-pull</description>
  27. <defaultValue>ansible/local.yml</defaultValue>
  28. </hudson.model.StringParameterDefinition>
  29. <hudson.model.StringParameterDefinition>
  30. <name>ANSIBLE_PLAYBOOK_BRANCH</name>
  31. <description>Git branch to pull with ansible-pull</description>
  32. <defaultValue>master</defaultValue>
  33. </hudson.model.StringParameterDefinition>
  34. <hudson.model.StringParameterDefinition>
  35. <name>ANSIBLE_PLAYBOOK_REPO</name>
  36. <description>Git repo to pull with ansible-pull</description>
  37. <defaultValue>https://github.com/indigobio/sparkleformation-indigo-empire.git</defaultValue>
  38. </hudson.model.StringParameterDefinition>
  39. <hudson.model.StringParameterDefinition>
  40. <name>ANSIBLE_VERSION</name>
  41. <description>Version of Ansible to install on instance bootstrap</description>
  42. <defaultValue>2.2.0.0-1ppa</defaultValue>
  43. </hudson.model.StringParameterDefinition>
  44. <hudson.model.StringParameterDefinition>
  45. <name>CONTROLLER_DESIRED_CAPACITY</name>
  46. <description>Number of Empire Controller instances to run</description>
  47. <defaultValue>2</defaultValue>
  48. </hudson.model.StringParameterDefinition>
  49. <hudson.model.StringParameterDefinition>
  50. <name>CONTROLLER_EBS_VOLUME_SIZE</name>
  51. <description>Size (in GB) for /var/lib/docker volume on Empire Controllers</description>
  52. <defaultValue>100</defaultValue>
  53. </hudson.model.StringParameterDefinition>
  54. <hudson.model.BooleanParameterDefinition>
  55. <name>CONTROLLER_INSTANCE_MONITORING</name>
  56. <description>Enable detailed Cloudwatch metrics on Empire Controllers (additional charges apply)</description>
  57. <defaultValue>false</defaultValue>
  58. </hudson.model.BooleanParameterDefinition>
  59. <hudson.model.StringParameterDefinition>
  60. <name>CONTROLLER_INSTANCE_TYPE</name>
  61. <description>Type of EC2 instance on which to run Empire Controllers</description>
  62. <defaultValue>t2.small</defaultValue>
  63. </hudson.model.StringParameterDefinition>
  64. <hudson.model.StringParameterDefinition>
  65. <name>CONTROLLER_MAX_SIZE</name>
  66. <description>Maximum number of EC2 instances on which to run the Empire Controller</description>
  67. <defaultValue>2</defaultValue>
  68. </hudson.model.StringParameterDefinition>
  69. <hudson.model.StringParameterDefinition>
  70. <name>CONTROLLER_NEW_RELIC_SERVER_LABELS</name>
  71. <description>New Relic server labels to apply to Empire Controllers in addition to &apos;Environment:${environment}&apos; (key1:value1;key2:value2)</description>
  72. <defaultValue>Role:empire_controller</defaultValue>
  73. </hudson.model.StringParameterDefinition>
  74. <hudson.model.StringParameterDefinition>
  75. <name>DOCKER_EMAIL</name>
  76. <description>E-mail address to use when pulling images from hub.docker.com</description>
  77. <defaultValue>devops@indigobio.com</defaultValue>
  78. </hudson.model.StringParameterDefinition>
  79. <hudson.model.PasswordParameterDefinition>
  80. <name>DOCKER_PASS</name>
  81. <description>Password to use with the DOCKER_USER credentials.</description>
  82. <defaultValue>xxxx</defaultValue>
  83. </hudson.model.PasswordParameterDefinition>
  84. <hudson.model.StringParameterDefinition>
  85. <name>DOCKER_REGISTRY</name>
  86. <description>URL of hte docker images repository</description>
  87. <defaultValue>https://index.docker.io/v1/</defaultValue>
  88. </hudson.model.StringParameterDefinition>
  89. <hudson.model.StringParameterDefinition>
  90. <name>DOCKER_USER</name>
  91. <description>Account name to use when pulling images from hub.docker.com.</description>
  92. <defaultValue>xxxx</defaultValue>
  93. </hudson.model.StringParameterDefinition>
  94. <hudson.model.StringParameterDefinition>
  95. <name>DOCKER_VERSION</name>
  96. <description>Version of docker-engine to install</description>
  97. <defaultValue>1.11.2-0</defaultValue>
  98. </hudson.model.StringParameterDefinition>
  99. <hudson.model.StringParameterDefinition>
  100. <name>ECS_AGENT_VERSION</name>
  101. <description>Version of the Amazon ECS agent to install</description>
  102. <defaultValue>v1.13.1</defaultValue>
  103. </hudson.model.StringParameterDefinition>
  104. <hudson.model.PasswordParameterDefinition>
  105. <name>EMPIRE_DATABASE_PASSWORD</name>
  106. <description>Password for the Empire database user</description>
  107. <defaultValue>xxxx</defaultValue>
  108. </hudson.model.PasswordParameterDefinition>
  109. <hudson.model.StringParameterDefinition>
  110. <name>EMPIRE_DATABASE_USER</name>
  111. <description>Empire database username</description>
  112. <defaultValue>xxxx</defaultValue>
  113. </hudson.model.StringParameterDefinition>
  114. <hudson.model.StringParameterDefinition>
  115. <name>EMPIRE_VERSION</name>
  116. <description>Empire version</description>
  117. <defaultValue>0.10.0</defaultValue>
  118. </hudson.model.StringParameterDefinition>
  119. <hudson.model.BooleanParameterDefinition>
  120. <name>ENABLE_SUMOLOGIC</name>
  121. <description>Enable the SumoLogic Logs Collector</description>
  122. <defaultValue>true</defaultValue>
  123. </hudson.model.BooleanParameterDefinition>
  124. <hudson.model.ChoiceParameterDefinition>
  125. <name>GITHUB_ORGANIZATION</name>
  126. <description>Github organization to use with Github authentication</description>
  127. <choices class="java.util.Arrays$ArrayList">
  128. <a class="string-array">
  129. <string>indigobio-ops</string>
  130. <string>indigobio-qa</string>
  131. </a>
  132. </choices>
  133. </hudson.model.ChoiceParameterDefinition>
  134. <hudson.model.StringParameterDefinition>
  135. <name>MINION_DESIRED_CAPACITY</name>
  136. <description>Number of Empire Minion instances to run</description>
  137. <defaultValue>5</defaultValue>
  138. </hudson.model.StringParameterDefinition>
  139. <hudson.model.BooleanParameterDefinition>
  140. <name>MINION_EBS_OPTIMIZED</name>
  141. <description>Create EBS optimized Empire Minion EC2 instances (additional charges and instance type restrictions apply)</description>
  142. <defaultValue>true</defaultValue>
  143. </hudson.model.BooleanParameterDefinition>
  144. <hudson.model.StringParameterDefinition>
  145. <name>MINION_EBS_VOLUME_SIZE</name>
  146. <description>Size (in GB) for /var/lib/docker volume on Empire Minions</description>
  147. <defaultValue>100</defaultValue>
  148. </hudson.model.StringParameterDefinition>
  149. <hudson.model.BooleanParameterDefinition>
  150. <name>MINION_INSTANCE_MONITORING</name>
  151. <description>Enable detailed Cloudwatch metrics on Empire Minions (additional charges apply)</description>
  152. <defaultValue>false</defaultValue>
  153. </hudson.model.BooleanParameterDefinition>
  154. <hudson.model.StringParameterDefinition>
  155. <name>MINION_INSTANCE_TYPE</name>
  156. <description>Type of EC2 instance on which to run Empire Minions</description>
  157. <defaultValue>c4.xlarge</defaultValue>
  158. </hudson.model.StringParameterDefinition>
  159. <hudson.model.StringParameterDefinition>
  160. <name>MINION_MAX_SIZE</name>
  161. <description>Maximum number of EC2 instances on which to run the Empire Minion</description>
  162. <defaultValue>5</defaultValue>
  163. </hudson.model.StringParameterDefinition>
  164. <hudson.model.StringParameterDefinition>
  165. <name>MINION_NEW_RELIC_SERVER_LABELS</name>
  166. <description>New Relic server labels to apply to Empire Minions in addition to &apos;Environment:${environment}&apos; (key1:value1;key2:value2)</description>
  167. <defaultValue>Role:empire_minion</defaultValue>
  168. </hudson.model.StringParameterDefinition>
  169. <hudson.model.StringParameterDefinition>
  170. <name>MINION_SWAP_VOLUME_SIZE</name>
  171. <description>Size (in GB) for /var/lib/docker volume on Empire Minions</description>
  172. <defaultValue>16</defaultValue>
  173. </hudson.model.StringParameterDefinition>
  174. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  175. <name>github_client_id</name>
  176. <description>Github API token for OAuth authentication</description>
  177. <defaultValue>empire_github_application_id</defaultValue>
  178. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  179. <required>true</required>
  180. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  181. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  182. <name>github_client_secret</name>
  183. <description>Github API token secret for OAuth authentication</description>
  184. <defaultValue>empire_github_application_secret</defaultValue>
  185. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  186. <required>true</required>
  187. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  188. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  189. <name>new_relic_license_key</name>
  190. <description>License key for newrelic server monitoring daemon</description>
  191. <defaultValue>2fc63af0-b976-4706-be13-93e08793f347</defaultValue>
  192. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  193. <required>true</required>
  194. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  195. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  196. <name>sumologic_access_id</name>
  197. <description>Sumologi API token for log collection</description>
  198. <defaultValue>21379ca0-4cab-468e-874d-a859e417c3d7</defaultValue>
  199. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  200. <required>true</required>
  201. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  202. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  203. <name>sumologic_access_key</name>
  204. <description>Sumologic API token secret for log collection</description>
  205. <defaultValue>94a2fc6a-bdc3-4c13-a4c6-c26284eb4c5d</defaultValue>
  206. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  207. <required>true</required>
  208. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  209. <com.cloudbees.plugins.credentials.CredentialsParameterDefinition plugin="credentials@2.1.10">
  210. <name>wtf</name>
  211. <description></description>
  212. <defaultValue>wtf</defaultValue>
  213. <credentialType>org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl</credentialType>
  214. <required>true</required>
  215. </com.cloudbees.plugins.credentials.CredentialsParameterDefinition>
  216. </parameterDefinitions>
  217. </hudson.model.ParametersDefinitionProperty>
  218. </properties>
  219. <scm class="org.jenkinsci.plugins.multiplescms.MultiSCM" plugin="multiple-scms@0.6">
  220. <scms>
  221. <hudson.plugins.git.GitSCM plugin="git@3.0.1">
  222. <configVersion>2</configVersion>
  223. <userRemoteConfigs>
  224. <hudson.plugins.git.UserRemoteConfig>
  225. <url>https://github.com/indigobio/sparkleformation-indigo-empire.git</url>
  226. </hudson.plugins.git.UserRemoteConfig>
  227. </userRemoteConfigs>
  228. <branches>
  229. <hudson.plugins.git.BranchSpec>
  230. <name>*/${branch}</name>
  231. </hudson.plugins.git.BranchSpec>
  232. </branches>
  233. <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
  234. <submoduleCfg class="list"/>
  235. <extensions/>
  236. </hudson.plugins.git.GitSCM>
  237. <hudson.plugins.git.GitSCM plugin="git@3.0.1">
  238. <configVersion>2</configVersion>
  239. <userRemoteConfigs>
  240. <hudson.plugins.git.UserRemoteConfig>
  241. <url>https://github.com/indigobio/infra-dotenv.git</url>
  242. <credentialsId>c8e2556b-1086-4d8d-ac65-b708b3010eb9</credentialsId>
  243. </hudson.plugins.git.UserRemoteConfig>
  244. </userRemoteConfigs>
  245. <branches>
  246. <hudson.plugins.git.BranchSpec>
  247. <name>*/master</name>
  248. </hudson.plugins.git.BranchSpec>
  249. </branches>
  250. <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
  251. <submoduleCfg class="list"/>
  252. <extensions>
  253. <hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
  254. <relativeTargetDir>envs</relativeTargetDir>
  255. </hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
  256. </extensions>
  257. </hudson.plugins.git.GitSCM>
  258. </scms>
  259. </scm>
  260. <canRoam>true</canRoam>
  261. <disabled>false</disabled>
  262. <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  263. <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  264. <triggers/>
  265. <concurrentBuild>false</concurrentBuild>
  266. <builders>
  267. <hudson.tasks.Shell>
  268. <command>set +x
  269. . envs/${environment}/.env
  270. #set -x
  271.  
  272. echo $WTF
  273. #echo &quot;GITHUB_CLIENT_ID = $GITHUB_CLIENT_ID&quot;
  274. #echo &quot;GITHUB_CLIENT_SECRET = $GITHUB_CLIENT_SECRET&quot;
  275. #echo &quot;NEW_RELIC_LICENSE_KEY = $NEW_RELIC_LICENSE_KEY&quot;
  276. #echo &quot;SUMOLOGIC_ACCESS_ID = $SUMOLOGIC_ACCESS_ID&quot;
  277. #echo &quot;SUMOLOGIC_ACCESS_KEY = $SUMOLOGIC_ACCESS_KEY&quot;
  278.  
  279. #env
  280.  
  281. #bundle install
  282.  
  283. #sfn create -p -I -f empire -d -M 7200 -m \
  284. #AnsibleInventory:${ANSIBLE_INVENTORY},\
  285. #AnsibleLocalYamlPath:${ANSIBLE_LOCAL_YAML_PATH},\
  286. #AnsiblePlaybookBranch:${ANSIBLE_PLAYBOOK_BRANCH},\
  287. #AnsiblePlaybookRepo:&quot;${ANSIBLE_PLAYBOOK_REPO}&quot;,\
  288. #AnsibleVersion:${ANSIBLE_VERSION},\
  289. #ControllerDesiredCapacity:${CONTROLLER_DESIRED_CAPACITY},\
  290. #ControllerEbsVolumeSize:${CONTROLLER_EBS_VOLUME_SIZE},\
  291. #ControllerInstanceMonitoring:${CONTROLLER_INSTANCE_MONITORING},\
  292. #ControllerInstanceType:${CONTROLLER_INSTANCE_TYPE},\
  293. #ControllerMaxSize:${CONTROLLER_MAX_SIZE},\
  294. #ControllerNewRelicServerLabels:&quot;Environment:${environment};${CONTROLLER_NEW_RELIC_SERVER_LABELS}&quot;,\
  295. #DockerEmail:${DOCKER_EMAIL},\
  296. #DockerPass:${DOCKER_PASS},\
  297. #DockerRegistry:${DOCKER_REGISTRY},\
  298. #DockerUser:${DOCKER_USER},\
  299. #DockerVersion:${DOCKER_VERSION},\
  300. #EcsAgentVersion:${ECS_AGENT_VERSION},\
  301. #EmpireDatabasePassword:${EMPIRE_DATABASE_PASSWORD},\
  302. #EmpireDatabaseUser:${EMPIRE_DATABASE_USER},\
  303. #EmpireVersion:${EMPIRE_VERSION},\
  304. #EnableSumoLogic:${ENABLE_SUMOLOGIC},\
  305. #GithubClientId:${GITHUB_CLIENT_ID},\
  306. #GithubClientSecret:${GITHUB_CLIENT_SECRET},\
  307. #GithubOrganization:${GITHUB_ORGANIZATION},\
  308. #MinionDesiredCapacity:${MINION_DESIRED_CAPACITY},\
  309. #MinionEbsOptimized:${MINION_EBS_OPTIMIZED},\
  310. #MinionEbsVolumeSize:${MINION_EBS_VOLUME_SIZE},\
  311. #MinionInstanceMonitoring:${MINION_INSTANCE_MONITORING},\
  312. #MinionInstanceType:${MINION_INSTANCE_TYPE},\
  313. #MinionMaxSize:${MINION_MAX_SIZE},\
  314. #MinionNewRelicServerLabels:&quot;Environment:${environment};${MINION_NEW_RELIC_SERVER_LABELS}&quot;,\
  315. #MinionSwapVolumeSize:${MINION_SWAP_VOLUME_SIZE},\
  316. #NewRelicLicenseKey:${NEW_RELIC_LICENSE_KEY},\
  317. #SumologicAccessId:${SUMOLOGIC_ACCESS_ID},\
  318. #SumologicAccessKey:${SUMOLOGIC_ACCESS_KEY} \
  319. #${org}-${environment}-empire-${AWS_REGION}-${BUILD_NUMBER}</command>
  320. </hudson.tasks.Shell>
  321. </builders>
  322. <publishers>
  323. <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.32">
  324. <patterns class="empty-list"/>
  325. <deleteDirs>false</deleteDirs>
  326. <skipWhenFailed>false</skipWhenFailed>
  327. <cleanWhenSuccess>true</cleanWhenSuccess>
  328. <cleanWhenUnstable>true</cleanWhenUnstable>
  329. <cleanWhenFailure>true</cleanWhenFailure>
  330. <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
  331. <cleanWhenAborted>true</cleanWhenAborted>
  332. <notFailBuild>false</notFailBuild>
  333. <cleanupMatrixParent>false</cleanupMatrixParent>
  334. <externalDelete></externalDelete>
  335. </hudson.plugins.ws__cleanup.WsCleanup>
  336. </publishers>
  337. <buildWrappers>
  338. <ruby-proxy-object>
  339. <ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="rvm">
  340. <pluginid pluginid="rvm" ruby-class="String">rvm</pluginid>
  341. <object ruby-class="RvmWrapper" pluginid="rvm">
  342. <impl pluginid="rvm" ruby-class="String">2.2.2@jenkins</impl>
  343. </object>
  344. </ruby-object>
  345. </ruby-proxy-object>
  346. <org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper plugin="credentials-binding@1.10">
  347. <bindings>
  348. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  349. <credentialsId>${github_client_id}</credentialsId>
  350. <variable>GITHUB_CLIENT_ID</variable>
  351. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  352. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  353. <credentialsId>${github_client_secret}</credentialsId>
  354. <variable>GITHUB_CLIENT_SECRET</variable>
  355. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  356. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  357. <credentialsId>${new_relic_license_key}</credentialsId>
  358. <variable>NEW_RELIC_LICENSE_KEY</variable>
  359. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  360. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  361. <credentialsId>${sumologic_access_id}</credentialsId>
  362. <variable>SUMOLOGIC_ACCESS_ID</variable>
  363. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  364. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  365. <credentialsId>${sumologic_access_key}</credentialsId>
  366. <variable>SUMOLOGIC_ACCESS_KEY</variable>
  367. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  368. <org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  369. <credentialsId>${wtf}</credentialsId>
  370. <variable>WTF</variable>
  371. </org.jenkinsci.plugins.credentialsbinding.impl.StringBinding>
  372. </bindings>
  373. </org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper>
  374. </buildWrappers>
  375. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement