├── .downloads ├── .final_builds ├── jobs │ ├── nexus-backup │ │ └── index.yml │ └── nexus │ │ └── index.yml ├── license │ └── index.yml └── packages │ ├── nexus-scripts │ └── index.yml │ └── nexus │ └── index.yml ├── .gitignore ├── .sha1 ├── 0.10.0 ├── 0.10.1 ├── 0.11.0 ├── 0.12.0 ├── 0.12.1 ├── 0.13.0 ├── 0.14.0 ├── 0.14.1 ├── 0.15.0 ├── 0.4.1 ├── 0.5.0 ├── 0.5.1 ├── 0.6.0 ├── 0.7.0 ├── 0.7.1 ├── 0.8.0 ├── 0.9.0 └── 0.9.1 ├── LICENSE ├── README.md ├── add-blobs.sh ├── config ├── blobs.yml └── final.yml ├── deployment └── nexus.yml ├── jobs ├── nexus-backup │ ├── monit │ ├── spec │ └── templates │ │ ├── backup │ │ ├── post-backup-unlock │ │ ├── pre-backup-lock │ │ └── restore └── nexus │ ├── monit │ ├── spec │ └── templates │ ├── ctl.erb │ ├── jetty-https.xml.erb │ ├── nexus.properties.erb │ ├── nexus.vmoptions.erb │ ├── post-start.erb │ ├── ssl_cert.pem.erb │ └── ssl_key.pem.erb ├── manifest.yml ├── packages ├── README.md ├── nexus-scripts │ ├── packaging │ └── spec └── nexus │ ├── packaging │ ├── pre_packaging │ └── spec ├── pipeline.yml ├── releases └── nexus │ ├── index.yml │ ├── nexus-0.0.1.yml │ ├── nexus-0.1.0.yml │ ├── nexus-0.10.0.yml │ ├── nexus-0.10.1.yml │ ├── nexus-0.11.0.yml │ ├── nexus-0.12.0.yml │ ├── nexus-0.12.1.yml │ ├── nexus-0.13.0.yml │ ├── nexus-0.14.0.yml │ ├── nexus-0.14.1.yml │ ├── nexus-0.15.0.yml │ ├── nexus-0.2.0.yml │ ├── nexus-0.3.0.yml │ ├── nexus-0.3.1.yml │ ├── nexus-0.3.2.yml │ ├── nexus-0.4.0.yml │ ├── nexus-0.4.1.yml │ ├── nexus-0.5.0.yml │ ├── nexus-0.5.1.yml │ ├── nexus-0.6.0.yml │ ├── nexus-0.7.0.yml │ ├── nexus-0.7.1.yml │ ├── nexus-0.8.0.yml │ ├── nexus-0.9.0.yml │ └── nexus-0.9.1.yml └── src └── nexus-scripts └── change_admin_password.sh /.downloads: -------------------------------------------------------------------------------- 1 | ../compiled -------------------------------------------------------------------------------- /.final_builds/jobs/nexus-backup/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c: 3 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 4 | blobstore_id: 66c1d4ed-9c17-4222-697c-7706f489f6eb 5 | sha1: sha256:8421fbd18b9a913fcd71aa11bf6349767575159cf15258f10027c12d04f4094b 6 | format-version: "2" 7 | -------------------------------------------------------------------------------- /.final_builds/jobs/nexus/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | fe7355d06f605b422c8fb7a1cfac67c43c9066ab99ec2d86e46109fe1da23c8b: 3 | version: fe7355d06f605b422c8fb7a1cfac67c43c9066ab99ec2d86e46109fe1da23c8b 4 | blobstore_id: 77a55bce-2a0f-43a2-48df-0e64f0f76519 5 | sha1: sha256:f3dd1bb41e95a40581a30222ba3be056284d01d3cbcf8922bcf740430da1ccda 6 | format-version: "2" 7 | -------------------------------------------------------------------------------- /.final_builds/license/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5: 3 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 4 | blobstore_id: 14d43ef3-327c-4f46-5cf6-b383f59d7cee 5 | sha1: sha256:bbc1805a7fb4c1b36cc6b8b8c7c1c18122dc947a28376787f6fa6b64bf8d9f8c 6 | format-version: "2" 7 | -------------------------------------------------------------------------------- /.final_builds/packages/nexus-scripts/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5: 3 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 4 | blobstore_id: 8d35d97f-137a-4109-7521-e52eee0e5c20 5 | sha1: sha256:60c6862264076becd6e03a84cdbebceea291f5be1c158c2b3d5ce3866803ed96 6 | format-version: "2" 7 | -------------------------------------------------------------------------------- /.final_builds/packages/nexus/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | 0d434850642743cfcbed761147798e40acc72c1f9165bcbb8e20a2debfd84d71: 3 | version: 0d434850642743cfcbed761147798e40acc72c1f9165bcbb8e20a2debfd84d71 4 | blobstore_id: 3c2c8c59-f9b3-4c61-7386-513885bbd823 5 | sha1: sha256:35f03ddf122070d1fbd18fda06a4a24aee9bf9b53aaebdf9f449fdf3ee707119 6 | format-version: "2" 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | config/dev.yml 2 | config/private.yml 3 | releases/*.tgz 4 | releases/**/*.tgz 5 | dev_releases 6 | .blobs 7 | blobs 8 | .dev_builds 9 | .idea 10 | .DS_Store 11 | .final_builds/jobs/**/*.tgz 12 | .final_builds/packages/**/*.tgz 13 | *.swp 14 | *~ 15 | *# 16 | #* 17 | credentials.yml 18 | *.gz 19 | *-state.json 20 | *.pem 21 | *.jks 22 | *.cert 23 | *.key 24 | *.p12 25 | creds.yml -------------------------------------------------------------------------------- /.sha1/0.10.0: -------------------------------------------------------------------------------- 1 | 243ee43d66c56fd8b6a692a377c643af5c5c4c2e 2 | -------------------------------------------------------------------------------- /.sha1/0.10.1: -------------------------------------------------------------------------------- 1 | 2ebba1689013a9cdbbe12c3fca76f5b1b82564aa 2 | -------------------------------------------------------------------------------- /.sha1/0.11.0: -------------------------------------------------------------------------------- 1 | d186a8affb161a4b282079de16080d8aaa4c5132 2 | -------------------------------------------------------------------------------- /.sha1/0.12.0: -------------------------------------------------------------------------------- 1 | 09debef2e945a905e089b8d7c445df4d0b32f4e6 2 | -------------------------------------------------------------------------------- /.sha1/0.12.1: -------------------------------------------------------------------------------- 1 | 42fd399f34a4ed116455147e78fdaf6c8b7f8148 2 | -------------------------------------------------------------------------------- /.sha1/0.13.0: -------------------------------------------------------------------------------- 1 | 9e7b17302e56bf360bf56b627d37fe902ed49e1b 2 | -------------------------------------------------------------------------------- /.sha1/0.14.0: -------------------------------------------------------------------------------- 1 | 7eefb285cea9eef38f0c23f7a4945e5720aba4a1 2 | -------------------------------------------------------------------------------- /.sha1/0.14.1: -------------------------------------------------------------------------------- 1 | 8c3ca35c5da68c37109ffda0c7365ef7ca639978 2 | -------------------------------------------------------------------------------- /.sha1/0.15.0: -------------------------------------------------------------------------------- 1 | e2ac40bb43dedeb428649f66dd047c2af504f1eb 2 | -------------------------------------------------------------------------------- /.sha1/0.4.1: -------------------------------------------------------------------------------- 1 | e2ffa9b7d9f2e34c2ee52a1762761c6db6cb2db3 2 | -------------------------------------------------------------------------------- /.sha1/0.5.0: -------------------------------------------------------------------------------- 1 | ae787a0e62261184d0c89ec2a513e23b336259e5 2 | -------------------------------------------------------------------------------- /.sha1/0.5.1: -------------------------------------------------------------------------------- 1 | a0ee10efceb07f5d5ebb09c6df1390ce6b7d4e93 2 | -------------------------------------------------------------------------------- /.sha1/0.6.0: -------------------------------------------------------------------------------- 1 | 8e76e705329c8c72cd87f39922e707978d425af7 2 | -------------------------------------------------------------------------------- /.sha1/0.7.0: -------------------------------------------------------------------------------- 1 | cef496b221567429943fbbd90c2110f737758fef 2 | -------------------------------------------------------------------------------- /.sha1/0.7.1: -------------------------------------------------------------------------------- 1 | 3814bec2588ec9f386a53cc188c15606347fb56d 2 | -------------------------------------------------------------------------------- /.sha1/0.8.0: -------------------------------------------------------------------------------- 1 | 148ca91914d23b58e5e1f0131e56dc25d3eae55a 2 | -------------------------------------------------------------------------------- /.sha1/0.9.0: -------------------------------------------------------------------------------- 1 | 2e0cbb0b40f5b9598cc89a5f097c0afa27725285 2 | -------------------------------------------------------------------------------- /.sha1/0.9.1: -------------------------------------------------------------------------------- 1 | c202848c2093e2cc385cb96a3bbcc03b9fef4e98 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2017 Toshiaki Maki 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BOSH Release for Nexus Repository Manager 2 | 3 | ## How to deploy nexus-boshrelease 4 | 5 | A sample manifest is following: 6 | 7 | ``` yml 8 | --- 9 | name: nexus 10 | 11 | releases: 12 | - name: nexus 13 | version: 0.12.0 14 | url: https://github.com/making/nexus-boshrelease/releases/download/0.12.0/nexus-boshrelease-0.12.0.tgz 15 | sha1: 09debef2e945a905e089b8d7c445df4d0b32f4e6 16 | - name: openjdk 17 | version: 8.0.1 18 | url: https://github.com/making/openjdk-boshrelease/releases/download/8.0.1/openjdk-boshrelease-8.0.1.tgz 19 | sha1: d02566fb6d974de4b60bf44dc21e56422c7da3fd 20 | 21 | stemcells: 22 | - alias: xenial 23 | os: ubuntu-xenial 24 | version: latest 25 | 26 | instance_groups: 27 | - name: nexus 28 | instances: 1 29 | vm_type: default 30 | persistent_disk: default 31 | stemcell: xenial 32 | azs: [z1] 33 | networks: 34 | - name: default 35 | static_ips: [((internal_ip))] 36 | jobs: 37 | - name: java 38 | release: openjdk 39 | - name: nexus 40 | release: nexus 41 | properties: 42 | nexus: 43 | heap_size: 768M 44 | max_direct_memory_size: 512M 45 | - name: nexus-backup 46 | release: nexus 47 | 48 | update: 49 | canaries: 1 50 | max_in_flight: 1 51 | serial: false 52 | canary_watch_time: 1000-60000 53 | update_watch_time: 1000-60000 54 | ``` 55 | 56 | then, 57 | 58 | ``` 59 | bosh deploy -d nexus nexus.yml -v internal_ip= 60 | ``` 61 | 62 | You will be able to access `http://:8081` 63 | 64 | 65 | ## How to enable SSL 66 | 67 | A sample manifest is following: 68 | 69 | ``` yml 70 | --- 71 | name: nexus 72 | 73 | releases: 74 | - name: nexus 75 | version: 0.12.0 76 | url: https://github.com/making/nexus-boshrelease/releases/download/0.12.0/nexus-boshrelease-0.12.0.tgz 77 | sha1: 09debef2e945a905e089b8d7c445df4d0b32f4e6 78 | - name: openjdk 79 | version: 8.0.1 80 | url: https://github.com/making/openjdk-boshrelease/releases/download/8.0.1/openjdk-boshrelease-8.0.1.tgz 81 | sha1: d02566fb6d974de4b60bf44dc21e56422c7da3fd 82 | 83 | stemcells: 84 | - alias: xenial 85 | os: ubuntu-xenial 86 | version: latest 87 | 88 | instance_groups: 89 | - name: nexus 90 | instances: 1 91 | vm_type: default 92 | persistent_disk: default 93 | stemcell: xenial 94 | azs: [z1] 95 | networks: 96 | - name: default 97 | static_ips: [((internal_ip))] 98 | jobs: 99 | - name: java 100 | release: openjdk 101 | - name: nexus 102 | release: nexus 103 | properties: 104 | nexus: 105 | heap_size: 768M 106 | max_direct_memory_size: 512M 107 | ssl_cert: ((nexus_ssl.certificate)) 108 | ssl_key: ((nexus_ssl.private_key)) 109 | ssl_only: true 110 | - name: nexus-backup 111 | release: nexus 112 | 113 | update: 114 | canaries: 1 115 | max_in_flight: 1 116 | serial: false 117 | canary_watch_time: 1000-60000 118 | update_watch_time: 1000-60000 119 | 120 | variables: 121 | - name: nexus_pkcs12_password 122 | type: password 123 | - name: nexus_keystore_password 124 | type: password 125 | - name: default_ca 126 | type: certificate 127 | options: 128 | is_ca: true 129 | common_name: ca 130 | - name: nexus_ssl 131 | type: certificate 132 | options: 133 | ca: default_ca 134 | common_name: ((internal_ip)) 135 | alternative_names: 136 | - ((internal_ip)) 137 | ``` 138 | 139 | then, 140 | 141 | ``` 142 | bosh deploy -d nexus nexus.yml -v internal_ip= 143 | ``` 144 | 145 | You will be able to access `https://:8443` 146 | 147 | 148 | ## Backup and Restore with [BBR](http://www.boshbackuprestore.io/) 149 | 150 | ### Backup 151 | 152 | ``` 153 | $ BOSH_CLIENT_SECRET= \ 154 | bbr deployment \ 155 | --target \ 156 | --username \ 157 | --deployment nexus \ 158 | --ca-cert \ 159 | backup 160 | ``` 161 | 162 | ### Restore 163 | 164 | ``` 165 | $ BOSH_CLIENT_SECRET= \ 166 | bbr deployment \ 167 | --target \ 168 | --username \ 169 | --deployment nexus \ 170 | --ca-cert \ 171 | backup \ 172 | --artifact-path 173 | ``` 174 | 175 | ## How to create stand-alone vm on VirtualBox 176 | 177 | Download [nexus.yml](deployment/nexus.yml). 178 | 179 | ``` 180 | $ bosh create-env nexus.yml -v internal_ip=192.168.230.40 --vars-store ./nexus-creds.yml 181 | ``` 182 | 183 | https://192.168.230.40 184 | 185 | You can get `admin` user's password as follows: 186 | 187 | ``` 188 | bosh int nexus-creds.yml --path /admin_password 189 | ``` 190 | 191 | ## How to develop this bosh release 192 | 193 | ``` 194 | bosh sync-blobs 195 | bosh create-release --name=nexus --force --timestamp-version --tarball=/tmp/nexus-boshrelease.tgz && bosh upload-release /tmp/nexus-boshrelease.tgz && bosh -n -d nexus deploy manifest.yml -v internal_ip= --no-redact 196 | ``` 197 | -------------------------------------------------------------------------------- /add-blobs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIR=`pwd` 4 | 5 | mkdir -p .downloads 6 | 7 | cd .downloads 8 | 9 | 10 | NEXUS_VERSION=3.28.1-01 11 | 12 | if [ ! -f ${DIR}/blobs/nexus/nexus-${NEXUS_VERSION}-unix.tar.gz ];then 13 | curl -L -O -J https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz 14 | bosh add-blob --dir=${DIR} nexus-${NEXUS_VERSION}-unix.tar.gz nexus/nexus-${NEXUS_VERSION}-unix.tar.gz 15 | fi 16 | 17 | cd - 18 | -------------------------------------------------------------------------------- /config/blobs.yml: -------------------------------------------------------------------------------- 1 | nexus/nexus-3.28.1-01-unix.tar.gz: 2 | size: 166494026 3 | object_id: 88015d70-ab3b-4be4-7a7f-d298529e5a0b 4 | sha: sha256:c87bbcedf6503e3776afede9903236ab7d8f68c31e8f1edf060e16f415166a61 5 | -------------------------------------------------------------------------------- /config/final.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | blobstore: 3 | provider: s3 4 | options: 5 | bucket_name: nexus-boshrelease 6 | region: ap-northeast-1 7 | endpoint: https://s3-ap-northeast-1.amazonaws.com 8 | -------------------------------------------------------------------------------- /deployment/nexus.yml: -------------------------------------------------------------------------------- 1 | # bosh create-env nexus.yml -v internal_ip=192.168.230.40 --vars-store ./nexus-creds.yml 2 | 3 | name: nexus 4 | 5 | releases: 6 | - name: nexus 7 | version: 0.13.0 8 | url: https://github.com/making/nexus-boshrelease/releases/download/0.13.0/nexus-boshrelease-0.13.0.tgz 9 | sha1: 9e7b17302e56bf360bf56b627d37fe902ed49e1b 10 | - name: bosh-virtualbox-cpi 11 | sha1: 537c77b087eeda859b1eb89553efa6f808214d50 12 | url: https://bosh.io/d/github.com/cppforlife/bosh-virtualbox-cpi-release?v=0.0.12 13 | version: 0.0.12 14 | - name: os-conf 15 | sha1: af5a2c9f228b9d7ec4bd051d71fef0e712fa1549 16 | url: https://bosh.io/d/github.com/cloudfoundry/os-conf-release?v=12 17 | version: 12 18 | - name: openjdk 19 | version: 8.0.1 20 | url: https://github.com/making/openjdk-boshrelease/releases/download/8.0.1/openjdk-boshrelease-8.0.1.tgz 21 | sha1: d02566fb6d974de4b60bf44dc21e56422c7da3fd 22 | 23 | resource_pools: 24 | - cloud_properties: 25 | cpus: 1 26 | ephemeral_disk: 32768 27 | memory: 1536 28 | env: 29 | bosh: 30 | password: '*' 31 | name: vms 32 | network: default 33 | stemcell: 34 | sha1: d89d0f08d748a8a07d05dca915cd9ddfcdee52a6 35 | url: https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-xenial-go_agent?v=170.6 36 | 37 | disk_pools: 38 | - disk_size: 50120 39 | name: disks 40 | 41 | networks: 42 | - name: default 43 | subnets: 44 | - dns: 45 | - 8.8.8.8 46 | gateway: 192.168.230.1 47 | range: 192.168.230.0/24 48 | static_ips: ((internal_ip)) 49 | type: manual 50 | - cloud_properties: 51 | name: outbound 52 | type: natnetwork 53 | name: outbound 54 | type: dynamic 55 | 56 | instance_groups: 57 | - name: nexus 58 | instances: 1 59 | jobs: 60 | - name: nexus 61 | release: nexus 62 | properties: 63 | nexus: 64 | http_port: 80 65 | https_port: 443 66 | heap_size: 768M 67 | max_direct_memory_size: 512M 68 | ssl_cert: ((nexus_ssl.certificate)) 69 | ssl_key: ((nexus_ssl.private_key)) 70 | admin_password: ((admin_password)) 71 | - name: user_add 72 | release: os-conf 73 | properties: 74 | users: 75 | - name: jumpbox 76 | public_key: ((jumpbox_ssh.public_key)) 77 | networks: 78 | - name: default 79 | default: 80 | - dns 81 | - gateway 82 | static_ips: 83 | - ((internal_ip)) 84 | - name: outbound 85 | persistent_disk_pool: disks 86 | resource_pool: vms 87 | 88 | cloud_provider: 89 | mbus: https://mbus:((mbus_bootstrap_password))@((internal_ip)):6868 90 | properties: 91 | agent: 92 | mbus: https://mbus:((mbus_bootstrap_password))@0.0.0.0:6868 93 | blobstore: 94 | path: /var/vcap/micro_bosh/data/cache 95 | provider: local 96 | ntp: 97 | - time1.google.com 98 | - time2.google.com 99 | - time3.google.com 100 | - time4.google.com 101 | template: 102 | name: virtualbox_cpi 103 | release: bosh-virtualbox-cpi 104 | 105 | variables: 106 | - name: mbus_bootstrap_password 107 | type: password 108 | - name: jumpbox_ssh 109 | type: ssh 110 | - name: nexus_pkcs12_password 111 | type: password 112 | - name: nexus_keystore_password 113 | type: password 114 | - name: default_ca 115 | type: certificate 116 | options: 117 | is_ca: true 118 | common_name: ca 119 | - name: nexus_ssl 120 | type: certificate 121 | options: 122 | ca: default_ca 123 | common_name: ((internal_ip)) 124 | alternative_names: 125 | - ((internal_ip)) 126 | - name: admin_password 127 | type: password 128 | -------------------------------------------------------------------------------- /jobs/nexus-backup/monit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/making/nexus-boshrelease/d520844352e77092c8bef1b2d8e508a7943b5ff0/jobs/nexus-backup/monit -------------------------------------------------------------------------------- /jobs/nexus-backup/spec: -------------------------------------------------------------------------------- 1 | --- 2 | name: nexus-backup 3 | 4 | templates: 5 | backup: bin/bbr/backup 6 | pre-backup-lock: bin/bbr/pre-backup-lock 7 | post-backup-unlock: bin/bbr/post-backup-unlock 8 | restore: bin/bbr/restore 9 | 10 | packages: [] 11 | 12 | properties: {} 13 | -------------------------------------------------------------------------------- /jobs/nexus-backup/templates/backup: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | BOSH_DATA_DIRECTORY=${BOSH_DATA_DIRECTORY:-/var/vcap/store} 6 | 7 | cd $BOSH_DATA_DIRECTORY 8 | echo "==== Begin creating tarball ====" 9 | tar czf sonatype-work.tgz sonatype-work 10 | echo "==== End creating tarball ====" 11 | mv sonatype-work.tgz $BBR_ARTIFACT_DIRECTORY -------------------------------------------------------------------------------- /jobs/nexus-backup/templates/post-backup-unlock: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | /var/vcap/bosh/bin/monit start nexus -------------------------------------------------------------------------------- /jobs/nexus-backup/templates/pre-backup-lock: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | PID=`cat /var/vcap/sys/run/nexus/pid` 5 | 6 | /var/vcap/bosh/bin/monit stop nexus 7 | 8 | while [ -e /proc/$PID ];do 9 | echo "Waiting until process($PID) stops" 10 | sleep 1 11 | done -------------------------------------------------------------------------------- /jobs/nexus-backup/templates/restore: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | BOSH_DATA_DIRECTORY=${BOSH_DATA_DIRECTORY:-/var/vcap/store} 6 | BACKUP_DIRECTORY="$BBR_ARTIFACT_DIRECTORY" 7 | BLOBS_DIRECTORY="$BOSH_DATA_DIRECTORY" 8 | PID=`cat /var/vcap/sys/run/nexus/pid` 9 | 10 | /var/vcap/bosh/bin/monit stop nexus 11 | 12 | while [ -e /proc/$PID ];do 13 | echo "Waiting until process($PID) stops" 14 | sleep 1 15 | done 16 | 17 | cd ${BOSH_DATA_DIRECTORY} 18 | rm -rf sonatype-work* 19 | mv ${BACKUP_DIRECTORY}/sonatype-work.tgz ./ 20 | echo "==== Begin extracting tarball ====" 21 | tar xzf sonatype-work.tgz 22 | echo "==== End extracting tarball ====" 23 | chown -R vcap:vcap ${BLOBS_DIRECTORY} 24 | /var/vcap/bosh/bin/monit start nexus 25 | rm -f sonatype-work.tgz -------------------------------------------------------------------------------- /jobs/nexus/monit: -------------------------------------------------------------------------------- 1 | check process nexus 2 | with pidfile /var/vcap/sys/run/nexus/pid 3 | start program "/var/vcap/jobs/nexus/bin/ctl start" 4 | stop program "/var/vcap/jobs/nexus/bin/ctl stop" 5 | group vcap -------------------------------------------------------------------------------- /jobs/nexus/spec: -------------------------------------------------------------------------------- 1 | --- 2 | name: nexus 3 | templates: 4 | ctl.erb: bin/ctl 5 | post-start.erb: bin/post-start 6 | jetty-https.xml.erb: jetty-https.xml 7 | nexus.vmoptions.erb: nexus.vmoptions 8 | nexus.properties.erb: nexus.properties 9 | ssl_cert.pem.erb: ssl/ssl_cert.pem 10 | ssl_key.pem.erb: ssl/ssl_key.pem 11 | packages: 12 | - nexus 13 | - nexus-scripts 14 | properties: 15 | nexus.http_port: 16 | description: "Port that Nexus will listen on for HTTP connections" 17 | default: 8081 18 | nexus.https_port: 19 | description: "Port that Nexus will listen on for HTTPS connections" 20 | default: 8443 21 | nexus.heap_size: 22 | description: "heap size" 23 | default: 1200M 24 | nexus.max_direct_memory_size: 25 | description: "max direct memory size" 26 | default: 2G 27 | nexus.data_dir: 28 | description: "data dir" 29 | default: /var/vcap/store/sonatype-work/nexus3 30 | nexus.ssl_only: 31 | description: "Enable only HTTPS requests" 32 | default: false 33 | nexus.ssl_cert: 34 | description: "SSL Certificate (PEM encoded)" 35 | nexus.ssl_key: 36 | description: "SSL private key (PEM encoded)" 37 | nexus.pkcs12_password: 38 | description: "PKCS12 file password" 39 | default: nexusboshnexusbosh 40 | nexus.keystore_password: 41 | description: "Keystore password" 42 | default: boshnexusboshnexus 43 | nexus.admin_password: 44 | description: "Password of admin user" 45 | default: admin123 46 | nexus.admin_old_password: 47 | description: "Old password of admin user" 48 | default: admin123 49 | orientdb.storage.disk_cache.disk_free_space_limit: 50 | description: Minimum amount of space on disk, which, when exceeded, will cause the database to switch to read-only mode (in megabytes) 51 | default: 1024 -------------------------------------------------------------------------------- /jobs/nexus/templates/ctl.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | JOB_NAME=nexus 4 | RUN_DIR=/var/vcap/sys/run/$JOB_NAME 5 | LOG_DIR=/var/vcap/sys/log/$JOB_NAME 6 | TMP_DIR=/var/vcap/data/sys/tmp 7 | PACKAGE_DIR=/var/vcap/packages/$JOB_NAME 8 | JOB_DIR=/var/vcap/jobs/$JOB_NAME 9 | PIDFILE=${RUN_DIR}/pid 10 | JAVA_HOME=/var/vcap/packages/java 11 | PATH=$PATH:$JAVA_HOME/bin 12 | DATA_DIR=<%= p("nexus.data_dir") %> 13 | export NEXUS_SECURITY_RANDOMPASSWORD=false 14 | case $1 in 15 | 16 | start) 17 | INITIAL=false 18 | <% if_p('nexus.ssl_cert', 'nexus.ssl_key', 'nexus.pkcs12_password', 'nexus.keystore_password') do |nexus_ssl_cert, nexus_ssl_key, nexus_pkcs12_password, nexus_keystore_password| %> 19 | openssl pkcs12 -export \ 20 | -name nexus \ 21 | -in $JOB_DIR/ssl/ssl_cert.pem \ 22 | -inkey $JOB_DIR/ssl/ssl_key.pem \ 23 | -out $JOB_DIR/ssl/keystore.p12 \ 24 | -password pass:<%= nexus_pkcs12_password %> 25 | keytool -importkeystore \ 26 | -destkeystore $JOB_DIR/ssl/keystore.jks \ 27 | -srckeystore $JOB_DIR/ssl/keystore.p12 \ 28 | -srcstoretype pkcs12 -alias nexus \ 29 | -deststorepass <%= nexus_keystore_password %> \ 30 | -srcstorepass <%= nexus_pkcs12_password %> \ 31 | -noprompt 32 | <% end %> 33 | if [ ! -d $DATA_DIR ]; then 34 | INITIAL=true 35 | echo "==== Initial Installation ====" >> /var/vcap/sys/log/nexus/nexus.log 36 | fi 37 | 38 | mkdir -p $RUN_DIR $LOG_DIR $TMP_DIR $DATA_DIR 39 | 40 | files=$(find $RUN_DIR $LOG_DIR $TMP_DIR $DATA_DIR ! -user vcap) 41 | for file in $files 42 | do 43 | chown vcap:vcap $file 44 | done 45 | 46 | # Allowed number of open file descriptors 47 | ulimit -n 100000 48 | 49 | if [ ! -d $DATA_DIR ]; then 50 | mkdir -p $DATA_DIR 51 | 52 | files=$(find $DATA_DIR ! -user vcap) 53 | for file in $files 54 | do 55 | chown vcap:vcap $file 56 | done 57 | 58 | cp -r $PACKAGE_DIR/nexus/sonatype-work/nexus3 $DATA_DIR 59 | fi 60 | sed -i -e 's@${karaf.data}/log@/var/vcap/sys/log/nexus@g' $PACKAGE_DIR/nexus/etc/logback/logback*.xml 61 | cp $JOB_DIR/nexus.vmoptions $PACKAGE_DIR/nexus/bin 62 | cp $JOB_DIR/nexus.properties $DATA_DIR/etc/ 63 | cp $JOB_DIR/jetty-https.xml $PACKAGE_DIR/nexus/etc/jetty/ 64 | $PACKAGE_DIR/nexus/bin/nexus start 65 | 66 | if [ "$INITIAL" == "true" ];then 67 | # Restart is required to configure SSL or enable nexus.scripts.allowCreation for the first time, why? 68 | while [ ! -f $PIDFILE ];do 69 | echo "Waiting..." >> /var/vcap/sys/log/nexus/nexus.log 70 | sleep 3 71 | done 72 | echo "Restarting..." >> /var/vcap/sys/log/nexus/nexus.log 73 | $PACKAGE_DIR/nexus/bin/nexus restart 74 | fi 75 | 76 | cat $DATA_DIR/lock | tr '@' ' ' | awk '{print $1}' > $PIDFILE 77 | ;; 78 | 79 | stop) 80 | $PACKAGE_DIR/nexus/bin/nexus stop 81 | rm -f $PIDFILE 82 | ;; 83 | 84 | *) 85 | echo "Usage: ctl {start|stop}" ;; 86 | 87 | esac 88 | -------------------------------------------------------------------------------- /jobs/nexus/templates/jetty-https.xml.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | https 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | /keystore.jks 25 | <%= p('nexus.keystore_password') %> 26 | <%= p('nexus.pkcs12_password') %> 27 | /keystore.jks 28 | <%= p('nexus.keystore_password') %> 29 | 30 | 31 | 32 | 33 | 34 | SSL_RSA_WITH_DES_CBC_SHA 35 | SSL_DHE_RSA_WITH_DES_CBC_SHA 36 | SSL_DHE_DSS_WITH_DES_CBC_SHA 37 | SSL_RSA_EXPORT_WITH_RC4_40_MD5 38 | SSL_RSA_EXPORT_WITH_DES40_CBC_SHA 39 | SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA 40 | SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | http/1.1 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /jobs/nexus/templates/nexus.properties.erb: -------------------------------------------------------------------------------- 1 | application-port=<%= p("nexus.http_port") %> 2 | application-port-ssl=<%= p("nexus.https_port") %> 3 | ssl.etc=/var/vcap/jobs/nexus/ssl 4 | <% if_p('nexus.ssl_cert', 'nexus.ssl_key', 'nexus.pkcs12_password', 'nexus.keystore_password') do |nexus_ssl_cert, nexus_ssl_key, nexus_pkcs12_password, nexus_keystore_password| %> 5 | <% if p('nexus.ssl_only') %> 6 | nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-https.xml,${jetty.etc}/jetty-requestlog.xml 7 | <% else %> 8 | nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-https.xml,${jetty.etc}/jetty-requestlog.xml 9 | <% end %> 10 | <% end %> 11 | nexus.scripts.allowCreation=true 12 | -------------------------------------------------------------------------------- /jobs/nexus/templates/nexus.vmoptions.erb: -------------------------------------------------------------------------------- 1 | -Xms<%= p("nexus.heap_size") %> 2 | -Xmx<%= p("nexus.heap_size") %> 3 | -XX:MaxDirectMemorySize=<%= p("nexus.max_direct_memory_size") %> 4 | -XX:+UnlockDiagnosticVMOptions 5 | -XX:+UnsyncloadClass 6 | -XX:+LogVMOutput 7 | -XX:LogFile=/var/vcap/sys/log/nexus/jvm.log 8 | -Djava.net.preferIPv4Stack=true 9 | -Dkaraf.home=. 10 | -Dkaraf.base=. 11 | -Dkaraf.etc=etc/karaf 12 | -Djava.util.logging.config.file=etc/karaf/java.util.logging.properties 13 | -Dkaraf.data=<%= p("nexus.data_dir") %> 14 | -Djava.io.tmpdir=/var/vcap/data/sys/tmp 15 | -Dkaraf.startLocalConsole=false 16 | -Dstorage.diskCache.diskFreeSpaceLimit=<%= p("orientdb.storage.disk_cache.disk_free_space_limit") %> 17 | -------------------------------------------------------------------------------- /jobs/nexus/templates/post-start.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | source /var/vcap/packages/nexus-scripts/change_admin_password.sh 3 | 4 | URL=http://localhost:<%= p("nexus.http_port") %> 5 | <% if_p('nexus.ssl_cert', 'nexus.ssl_key', 'nexus.pkcs12_password', 'nexus.keystore_password') do |nexus_ssl_cert, nexus_ssl_key, nexus_pkcs12_password, nexus_keystore_password| %> 6 | URL=https://localhost:<%= p("nexus.https_port") %> 7 | <% end %> 8 | 9 | count=1 10 | while [ "`curl -s -o /dev/null -k -I -w "%{http_code}" ${URL}`" != "200" ];do 11 | echo "[${count}/60] Waiting until ${URL} is ready ..." 12 | sleep 5 13 | 14 | if [ $count = 60 ];then 15 | echo "Nexus does not seem to start!" 16 | exit 1 17 | fi 18 | count=$((count + 1)) 19 | done 20 | 21 | echo "Update admin password" 22 | 23 | change_admin_password ${URL} <%= p("nexus.admin_old_password") %> <%= p("nexus.admin_password") %> -k -------------------------------------------------------------------------------- /jobs/nexus/templates/ssl_cert.pem.erb: -------------------------------------------------------------------------------- 1 | <%= p('nexus.ssl_cert', '') %> -------------------------------------------------------------------------------- /jobs/nexus/templates/ssl_key.pem.erb: -------------------------------------------------------------------------------- 1 | <%= p('nexus.ssl_key', '') %> -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: nexus 3 | 4 | releases: 5 | - name: nexus 6 | version: latest 7 | - name: openjdk 8 | version: 8.0.1 9 | url: https://github.com/making/openjdk-boshrelease/releases/download/8.0.1/openjdk-boshrelease-8.0.1.tgz 10 | sha1: d02566fb6d974de4b60bf44dc21e56422c7da3fd 11 | 12 | stemcells: 13 | - alias: xenial 14 | os: ubuntu-xenial 15 | version: latest 16 | 17 | instance_groups: 18 | - name: nexus 19 | instances: 1 20 | vm_type: default 21 | persistent_disk: 2048 22 | stemcell: xenial 23 | azs: [z1] 24 | networks: 25 | - name: default 26 | static_ips: [((internal_ip))] 27 | jobs: 28 | - name: java 29 | release: openjdk 30 | - name: nexus 31 | release: nexus 32 | properties: 33 | nexus: 34 | https_port: 443 35 | heap_size: 768M 36 | max_direct_memory_size: 512M 37 | ssl_cert: ((nexus_ssl.certificate)) 38 | ssl_key: ((nexus_ssl.private_key)) 39 | ssl_only: true 40 | - name: nexus-backup 41 | release: nexus 42 | 43 | update: 44 | canaries: 1 45 | max_in_flight: 1 46 | serial: false 47 | canary_watch_time: 1000-60000 48 | update_watch_time: 1000-60000 49 | 50 | variables: 51 | - name: nexus_pkcs12_password 52 | type: password 53 | - name: nexus_keystore_password 54 | type: password 55 | - name: default_ca 56 | type: certificate 57 | options: 58 | is_ca: true 59 | common_name: ca 60 | - name: nexus_ssl 61 | type: certificate 62 | options: 63 | ca: default_ca 64 | common_name: ((internal_ip)) 65 | alternative_names: 66 | - ((internal_ip)) 67 | -------------------------------------------------------------------------------- /packages/README.md: -------------------------------------------------------------------------------- 1 | 2 | ``` 3 | wget https://download.run.pivotal.io/openjdk-jdk/trusty/x86_64/openjdk-1.8.0_172.tar.gz 4 | wget https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.12.1-01-unix.tar.gz 5 | ``` 6 | 7 | ### Old CLI 8 | 9 | ``` 10 | bosh add blob openjdk-1.8.0_172.tar.gz java 11 | bosh add blob nexus-3.12.1-01-unix.tar.gz nexus 12 | ``` 13 | 14 | If you have an access for the S3 15 | 16 | ``` 17 | bosh upload blobs 18 | ``` 19 | 20 | ### New CLI (might work) 21 | 22 | ``` 23 | bosh add-blob --dir=.. openjdk-1.8.0_172.tar.gz java/openjdk-1.8.0_172.tar.gz 24 | bosh add-blob --dir=.. nexus-3.12.1-01-unix.tar.gz nexus/nexus-3.12.1-01-unix.tar.gz 25 | ``` 26 | 27 | If you have an access for the S3 of cloudfoundry-community 28 | 29 | ``` 30 | bosh upload-blobs --dir=.. 31 | ``` 32 | 33 | -------------------------------------------------------------------------------- /packages/nexus-scripts/packaging: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | cp -a nexus-scripts/* ${BOSH_INSTALL_TARGET} -------------------------------------------------------------------------------- /packages/nexus-scripts/spec: -------------------------------------------------------------------------------- 1 | --- 2 | name: nexus-scripts 3 | 4 | dependencies: [] 5 | 6 | files: 7 | - nexus-scripts/*.sh 8 | -------------------------------------------------------------------------------- /packages/nexus/packaging: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | NEXUS_VERSION=3.28.1-01 4 | 5 | tar xfv nexus/nexus-${NEXUS_VERSION}-unix.tar.gz 6 | cp -ar ./nexus-${NEXUS_VERSION} $BOSH_INSTALL_TARGET/nexus 7 | cp -ar ./sonatype-work $BOSH_INSTALL_TARGET/ 8 | 9 | -------------------------------------------------------------------------------- /packages/nexus/pre_packaging: -------------------------------------------------------------------------------- 1 | # abort script on any command that exits with a non zero value 2 | set -e 3 | -------------------------------------------------------------------------------- /packages/nexus/spec: -------------------------------------------------------------------------------- 1 | --- 2 | name: nexus 3 | 4 | dependencies: [] 5 | 6 | files: 7 | - nexus/nexus-3.28.1-01-unix.tar.gz 8 | -------------------------------------------------------------------------------- /pipeline.yml: -------------------------------------------------------------------------------- 1 | --- 2 | params: 3 | bosh: &BOSH 4 | BOSH_CLIENT: ((bosh_client)) 5 | BOSH_ENVIRONMENT: ((bosh_environment)) 6 | BOSH_CLIENT_SECRET: ((bosh_client_secret)) 7 | BOSH_CA_CERT: ((bosh_ca_cert)) 8 | tasks: 9 | bosh-create-release: &BOSH_CREATE_RELEASE 10 | platform: linux 11 | image_resource: 12 | type: docker-image 13 | source: 14 | repository: bosh/main-bosh-docker 15 | inputs: 16 | - name: repo 17 | outputs: 18 | - name: releases 19 | run: 20 | path: bash 21 | args: 22 | - -c 23 | - | 24 | set -e 25 | cd repo 26 | mkdir -p src 27 | rm -rf .final_builds releases 28 | bosh create-release --name=nexus-dev --force --timestamp-version --tarball=../releases/nexus-boshrelease.tgz 29 | bosh-deploy: &BOSH_DEPLOY 30 | platform: linux 31 | image_resource: 32 | type: docker-image 33 | source: 34 | repository: bosh/main-bosh-docker 35 | inputs: 36 | - name: repo 37 | - name: releases 38 | caches: 39 | - path: repo/.bosh 40 | run: 41 | path: bash 42 | args: 43 | - -cex 44 | - | 45 | echo "======" 46 | VM_TYPE=medium 47 | bosh env 48 | bosh upload-release releases/nexus-boshrelease.tgz 49 | cd repo 50 | cat < ops.yml 51 | - type: remove 52 | path: /instance_groups/name=${RELEASE_NAME}-dev/networks/0/static_ips 53 | - type: replace 54 | path: /instance_groups/name=${RELEASE_NAME}-dev/vm_type 55 | value: ${VM_TYPE} 56 | - type: replace 57 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/admin_password? 58 | value: helloworld 59 | EOF 60 | cat < http-only.yml 61 | - type: remove 62 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/admin_old_password? 63 | - type: remove 64 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/ssl_cert? 65 | - type: remove 66 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/ssl_key? 67 | - type: remove 68 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/ssl_only? 69 | - type: remove 70 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/https_port? 71 | EOF 72 | 73 | sed -i "s/${RELEASE_NAME}/${RELEASE_NAME}-dev/" manifest.yml 74 | sed -i "s/ - name: nexus-dev/ - name: nexus/" manifest.yml 75 | sed -i "s/ - name: nexus-dev-backup/ - name: nexus-backup/" manifest.yml 76 | sed -i "s/ nexus-dev:/ nexus:/" manifest.yml 77 | 78 | echo "⭐️⭐️⭐️ Test HTTP" 79 | bosh -n deploy -d ${RELEASE_NAME}-dev <(bosh int manifest.yml -o ops.yml) -o http-only.yml -v internal_ip=192.168.11.241 --vars-store=creds.yml --no-redact 80 | bosh vms -d ${RELEASE_NAME}-dev 81 | ip=`bosh vms -d ${RELEASE_NAME}-dev | grep ${RELEASE_NAME} | awk '{print $4}'` 82 | PASSWORD=helloworld 83 | 84 | curl --fail -u admin:${PASSWORD} -v http://${ip}:8081/service/rest/v1/script 85 | bosh -n delete-deployment -d ${RELEASE_NAME}-dev 86 | 87 | echo "⭐️⭐️⭐️ Test HTTPS" 88 | bosh -n deploy -d ${RELEASE_NAME}-dev <(bosh int manifest.yml -o ops.yml) -v internal_ip=192.168.11.241 --vars-store=creds.yml --no-redact 89 | curl --fail -u admin:${PASSWORD} -v -k https://${ip}:443/service/rest/v1/script 90 | echo "⭐️⭐️⭐️ Update Password" 91 | cat < ops.yml 92 | - type: remove 93 | path: /instance_groups/name=${RELEASE_NAME}-dev/networks/0/static_ips 94 | - type: replace 95 | path: /instance_groups/name=${RELEASE_NAME}-dev/vm_type 96 | value: ${VM_TYPE} 97 | - type: replace 98 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/admin_password? 99 | value: hellonewworld 100 | - type: replace 101 | path: /instance_groups/name=${RELEASE_NAME}-dev/jobs/name=nexus/properties/nexus/admin_old_password? 102 | value: helloworld 103 | EOF 104 | bosh -n deploy -d ${RELEASE_NAME}-dev <(bosh int manifest.yml -o ops.yml) -v internal_ip=192.168.11.241 --vars-store=creds.yml --no-redact 105 | curl --fail -u admin:hellonewworld -v -k https://${ip}:443/service/rest/v1/script 106 | 107 | bosh -n delete-deployment -d ${RELEASE_NAME}-dev 108 | 109 | bosh -n clean-up 110 | 111 | resource_types: 112 | - name: dynamic-metalink 113 | type: docker-image 114 | source: 115 | repository: dpb587/dynamic-metalink-resource 116 | 117 | resources: 118 | - name: repo 119 | type: git 120 | source: 121 | uri: git@github.com:making/nexus-boshrelease.git 122 | branch: master 123 | private_key: ((github_private_key)) 124 | ignore_paths: 125 | - ci/* 126 | - deployment/* 127 | - README.md 128 | - name: repo-version 129 | type: semver 130 | source: 131 | uri: git@github.com:making/nexus-boshrelease.git 132 | branch: version 133 | private_key: ((github_private_key)) 134 | file: version 135 | driver: git 136 | - name: gh-release 137 | type: github-release 138 | source: 139 | user: making 140 | repository: nexus-boshrelease 141 | access_token: ((github_access_token)) 142 | - name: utils 143 | type: git 144 | source: 145 | uri: https://github.com/making/ci-utils.git 146 | branch: master 147 | - name: nexus 148 | type: dynamic-metalink 149 | check_every: 30m 150 | source: 151 | version_check: | 152 | curl --fail -s -I https://sonatype-download.global.ssl.fastly.net/nexus/3/latest-mac.tgz.sha1 | \ 153 | grep Location | \ 154 | awk -F 'nexus-' '{print $2}' | \ 155 | awk -F '-mac' '{print $1}' 156 | metalink_get: | 157 | jq -n ' 158 | "nexus-\(env.version)-unix.tar.gz" | { 159 | "files": [ 160 | { "name": ., 161 | "urls": [ { "url": "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-\(.)-unix.tar.gz" } ] } ] }' 162 | 163 | jobs: 164 | - name: update-pr 165 | serial: true 166 | plan: 167 | - in_parallel: 168 | - get: release 169 | resource: nexus 170 | trigger: true 171 | params: 172 | skip_download: true 173 | - get: repo 174 | - get: utils 175 | - task: update-nexus 176 | params: 177 | GIT_EMAIL: ((git_email)) 178 | GIT_NAME: ((git_name)) 179 | GIT_SSH_KEY: ((github_private_key)) 180 | GITHUB_API_TOKEN: ((github_access_token)) 181 | S3_ACCESS_KEY_ID: ((s3_access_key_id)) 182 | S3_SECRET_ACCESS_KEY: ((s3_secret_access_key)) 183 | config: 184 | platform: linux 185 | image_resource: 186 | type: docker-image 187 | source: 188 | repository: bosh/main-bosh-docker 189 | inputs: 190 | - name: release 191 | - name: repo 192 | - name: utils 193 | outputs: 194 | - name: updated-repo 195 | run: 196 | path: bash 197 | args: 198 | - -c 199 | - | 200 | set -e 201 | shopt -s dotglob 202 | source utils/scripts/generate-pr.sh 203 | CURRENT_VERSION=`grep NEXUS_VERSION= repo/add-blobs.sh | tr -d 'NEXUS_VERSION='` 204 | NEW_VERSION=$(cat release/.resource/version) 205 | 206 | echo "Current: $CURRENT_VERSION" 207 | echo "New : $NEW_VERSION" 208 | cd repo 209 | sed -i.swp "s/$CURRENT_VERSION/$NEW_VERSION/g" `grep -riIl $CURRENT_VERSION packages/` add-blobs.sh 210 | rm -f `find . -name '*.swp'` 211 | 212 | ./add-blobs.sh 213 | cat < config/private.yml 214 | --- 215 | blobstore: 216 | options: 217 | access_key_id: ${S3_ACCESS_KEY_ID} 218 | secret_access_key: ${S3_SECRET_ACCESS_KEY} 219 | EOF 220 | bosh upload-blobs 221 | sed -i.swp "/$CURRENT_VERSION/,/sha/ d" config/blobs.yml 222 | git diff | cat 223 | cp -r ./* ../updated-repo 224 | cd ../updated-repo 225 | generate_pull_request "making-bot" "nexus" "${NEW_VERSION}" "making/nexus-boshrelease" "master" 226 | 227 | - name: bosh-deploy-dev-in-exsiting-env 228 | serial: true 229 | plan: 230 | - in_parallel: 231 | - get: repo 232 | trigger: true 233 | - task: bosh-create-release 234 | params: 235 | S3_ACCESS_KEY_ID: ((s3_access_key_id)) 236 | S3_SECRET_ACCESS_KEY: ((s3_secret_access_key)) 237 | config: 238 | <<: *BOSH_CREATE_RELEASE 239 | - task: bosh-deploy 240 | params: 241 | RELEASE_NAME: nexus 242 | IS_DOCKER: false 243 | <<: *BOSH 244 | config: 245 | <<: *BOSH_DEPLOY 246 | - name: ship-it 247 | serial: true 248 | plan: 249 | - in_parallel: 250 | - get: repo 251 | # passed: 252 | # - bosh-deploy-dev-in-exsiting-env 253 | - get: repo-version 254 | - task: create-release 255 | params: 256 | <<: *BOSH 257 | S3_ACCESS_KEY_ID: ((s3_access_key_id)) 258 | S3_SECRET_ACCESS_KEY: ((s3_secret_access_key)) 259 | GIT_EMAIL: ((git_email)) 260 | GIT_NAME: ((git_name)) 261 | config: 262 | platform: linux 263 | image_resource: 264 | type: docker-image 265 | source: 266 | repository: bosh/main-bosh-docker 267 | inputs: 268 | - name: repo 269 | - name: repo-version 270 | outputs: 271 | - name: releases 272 | - name: updated-repo 273 | run: 274 | path: bash 275 | args: 276 | - -c 277 | - | 278 | set -e 279 | cd repo 280 | shopt -s dotglob 281 | cp -r ./* ../updated-repo 282 | rm -rf .final_builds releases 283 | VERSION=`cat ../repo-version/number` 284 | TARBALL=nexus-boshrelease-${VERSION}.tgz 285 | cat < config/private.yml 286 | --- 287 | blobstore: 288 | options: 289 | access_key_id: ${S3_ACCESS_KEY_ID} 290 | secret_access_key: ${S3_SECRET_ACCESS_KEY} 291 | EOF 292 | bosh create-release --force --version=${VERSION} --final --tarball=../releases/${TARBALL} 293 | SHA1=`sha1sum ../releases/${TARBALL} | awk '{print $1}'` 294 | mkdir -p .sha1 295 | echo ${SHA1} > .sha1/${VERSION} 296 | cp -r ./* ../updated-repo 297 | cd ../updated-repo 298 | git config --global user.email "${GIT_EMAIL}" 299 | git config --global user.name "${GIT_NAME}" 300 | git add -A 301 | git commit -m "Release ${VERSION}" 302 | # Release Note 303 | cat < ../releases/note.md 304 | ## Deployment 305 | \`\`\` yaml 306 | # manifest.yml 307 | --- 308 | name: nexus 309 | releases: 310 | - name: nexus 311 | version: ${VERSION} 312 | url: https://github.com/making/nexus-boshrelease/releases/download/${VERSION}/${TARBALL} 313 | sha1: ${SHA1} 314 | \`\`\` 315 | EOF 316 | - put: repo 317 | params: 318 | repository: updated-repo 319 | tag: repo-version/number 320 | - put: gh-release 321 | params: 322 | name: repo-version/number 323 | tag: repo-version/number 324 | body: releases/note.md 325 | globs: 326 | - releases/*.tgz 327 | 328 | ######################################## 329 | 330 | - name: bump-to-next-patch-version 331 | plan: 332 | - in_parallel: 333 | - get: repo 334 | trigger: true 335 | passed: 336 | - ship-it 337 | - get: repo-version 338 | params: 339 | bump: patch 340 | - put: repo-version 341 | params: 342 | file: repo-version/number 343 | 344 | - name: bump-to-next-minor-version 345 | plan: 346 | - in_parallel: 347 | - get: repo-version 348 | params: 349 | bump: minor 350 | - put: repo-version 351 | params: 352 | file: repo-version/number 353 | 354 | - name: bump-to-next-majar-version 355 | plan: 356 | - in_parallel: 357 | - get: repo-version 358 | params: 359 | bump: majar 360 | - put: repo-version 361 | params: 362 | file: repo-version/number 363 | 364 | -------------------------------------------------------------------------------- /releases/nexus/index.yml: -------------------------------------------------------------------------------- 1 | builds: 2 | a03e6900-299b-4370-5dc7-670038c39964: 3 | version: 0.15.0 4 | format-version: "2" 5 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.0.1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: b6b4500d29d909e9646658af603dd9e7b8e67aad 5 | fingerprint: b6b4500d29d909e9646658af603dd9e7b8e67aad 6 | sha1: d7dee4713a2daab41c49106f6bae050dcc1de57f 7 | dependencies: [] 8 | - name: nexus 9 | version: 27ac34227d54500450581ec5d5eeaf6de1c61238 10 | fingerprint: 27ac34227d54500450581ec5d5eeaf6de1c61238 11 | sha1: a0f4bc97f489c7ddeceeca19c1aa25b04c6c0fe1 12 | dependencies: [] 13 | jobs: 14 | - name: nexus 15 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 16 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 17 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 18 | commit_hash: f4a85141 19 | uncommitted_changes: true 20 | name: nexus 21 | version: 0.0.1 22 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.1.0.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: a3f64bbca0270aab1a38975c4f69b65800a00ee2 5 | fingerprint: a3f64bbca0270aab1a38975c4f69b65800a00ee2 6 | sha1: 97f210d886452b66f45dc21bd560056a155cb80e 7 | dependencies: [] 8 | - name: nexus 9 | version: 459317048d44f2ce6a2a25d795a1d43c48cd3af9 10 | fingerprint: 459317048d44f2ce6a2a25d795a1d43c48cd3af9 11 | sha1: 3c752521030a7d9c48692e4d63be8531b37ba799 12 | dependencies: [] 13 | jobs: 14 | - name: nexus 15 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 16 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 17 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 18 | commit_hash: 91de8d7e 19 | uncommitted_changes: true 20 | name: nexus 21 | version: 0.1.0 22 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.10.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.10.0 3 | commit_hash: 9e64bda 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: 948636e9dcf463c06b481eaf60dd50f77ef553ed 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 7663b9ea11a45e97504c54d047b11f3a2ceb6345 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: 8a3cc58aaf876cd084fff84e0992638882739dbb 19 | dependencies: [] 20 | - name: nexus 21 | version: e60012165ec23b42d119b3121d89b5f0c254a191 22 | fingerprint: e60012165ec23b42d119b3121d89b5f0c254a191 23 | sha1: 92e3e164f78e31e0d56bc048f4c26e65b065a72b 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: 39636c5c5c718578dd60614f2f29693c0b999522 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: 9fd701f542f8b5c09dd2f2e20073a188ee06dbc9 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.10.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.10.1 3 | commit_hash: "4211259" 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: 909de169fd64504fa420fcba2fc6097edec64d25 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: ddae17c7e4222283a52802ee8682ebd60100c9b1 14 | packages: 15 | - name: java 16 | version: 9c6970030fc77b9de77b2f6137d91f9fa3f08291 17 | fingerprint: 9c6970030fc77b9de77b2f6137d91f9fa3f08291 18 | sha1: f88e95ae651cfc910f5fe061a83514c19cecd27d 19 | dependencies: [] 20 | - name: nexus 21 | version: 5edf90bac99445e29b346456dc74fe0193ee5d1f 22 | fingerprint: 5edf90bac99445e29b346456dc74fe0193ee5d1f 23 | sha1: 001041cdc9d006906beba35b91e78c6c11bfd3a1 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: 42e2d85247005c4d3c5a7a7627562ea336596ada 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: e409ad342162279c9775cb0a9af5808823571e0c 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.11.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.11.0 3 | commit_hash: c80a423 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 225d2e2cb13eab8dc8fa7e11f246ad3343297db6 8 | fingerprint: 225d2e2cb13eab8dc8fa7e11f246ad3343297db6 9 | sha1: 5e784e192c11907c5d4d4279db1b70c3c2a5801b 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 98e7efec697cb74a967c9ed37774eb398563f118 14 | packages: 15 | - name: nexus 16 | version: 5edf90bac99445e29b346456dc74fe0193ee5d1f 17 | fingerprint: 5edf90bac99445e29b346456dc74fe0193ee5d1f 18 | sha1: d758c81d5dba394741cd014ab5be70169a19959f 19 | dependencies: [] 20 | - name: nexus-scripts 21 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 22 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 23 | sha1: cab50bc27dc11b855139726f6d0580e32839c13d 24 | dependencies: [] 25 | license: 26 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 27 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 28 | sha1: c209667cb89f9bf26bd8da849e807c8ac34a736f 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.12.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.12.0 3 | commit_hash: d08f2a3 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 0f3094e36885de33c76bc63518cbaad57ecd3c84 8 | fingerprint: 0f3094e36885de33c76bc63518cbaad57ecd3c84 9 | sha1: bd8ea705deff872ab6b65af2f9ffb5f47f0297b3 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 4ff26c2deb6a0cfa8f077842fba145935ecba7ba 14 | packages: 15 | - name: nexus 16 | version: 4615bc493405ed7ca6de019267882e678b5f6d53 17 | fingerprint: 4615bc493405ed7ca6de019267882e678b5f6d53 18 | sha1: 7362f280aa9600e1b9f251efc44e1fa6019fb527 19 | dependencies: [] 20 | - name: nexus-scripts 21 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 22 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 23 | sha1: b36ec7b80d1d47e4aab6c5002045f1a323bba380 24 | dependencies: [] 25 | license: 26 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 27 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 28 | sha1: 95b3f636eafcc778cca3b8a070a642f6efc519e4 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.12.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.12.1 3 | commit_hash: 79b1840 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 8 | fingerprint: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 9 | sha1: sha256:1d0c67a614de3e0b3804d4732bbcc047708c95d1c0369a7bb9c9d24392edc506 10 | - name: nexus-backup 11 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 12 | fingerprint: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 13 | sha1: sha256:58c01fdc0dce8f5b115244ae30affb1860ad07741d98055fef4a6ac3087638a0 14 | packages: 15 | - name: nexus 16 | version: 8299d0cb563f674325e1066b57a0658929d91fa4a80670e954b58025ba50d44f 17 | fingerprint: 8299d0cb563f674325e1066b57a0658929d91fa4a80670e954b58025ba50d44f 18 | sha1: sha256:6650fb110f10edbd65916549649278fd30a7a94711314d7fe72af909115555fb 19 | dependencies: [] 20 | - name: nexus-scripts 21 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 22 | fingerprint: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 23 | sha1: sha256:5b6b21a5c8346d5549a24a6a4bc22b7fc34bec2eb9d2bbacd7ac05cc1194180d 24 | dependencies: [] 25 | license: 26 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 27 | fingerprint: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 28 | sha1: sha256:0ce316576502da5232c2987bad7bcb02f912a1ee959f85f47d8be3746ff8f3cd 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.13.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.13.0 3 | commit_hash: 1175cef 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 8 | fingerprint: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 9 | sha1: sha256:2961dd40babc802650b368380fcabc78027565b09c648afb34ae0c1443282dc6 10 | - name: nexus-backup 11 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 12 | fingerprint: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 13 | sha1: sha256:dcc24403db0cf631c7dc4c357df03fa231879cbaba1c73da277ab9920a425622 14 | packages: 15 | - name: nexus 16 | version: f09eddbbe050cc5f9fcaee38ac3a5b55bd7f79700fbda449a8e81477e594e111 17 | fingerprint: f09eddbbe050cc5f9fcaee38ac3a5b55bd7f79700fbda449a8e81477e594e111 18 | sha1: sha256:516e8b7871268b7afaa7a629ce150317820afa78442905aeb98ea0c922a5e1a0 19 | dependencies: [] 20 | - name: nexus-scripts 21 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 22 | fingerprint: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 23 | sha1: sha256:d84919889d6bb7b08f7bcdd105c009c104a73b2f929351ee0dda2b4c2f35fa27 24 | dependencies: [] 25 | license: 26 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 27 | fingerprint: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 28 | sha1: sha256:c19a9b8924ca104aba0d92fc4e53992766134cff361c171772b53eb3363805e9 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.14.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.14.0 3 | commit_hash: 913c235 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 8 | fingerprint: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 9 | sha1: sha256:f39cf504c4b70f43e0cc329c998ca71b7dadca69551b16152ffa21db0260a6b0 10 | packages: 11 | - nexus 12 | - nexus-scripts 13 | - name: nexus-backup 14 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 15 | fingerprint: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 16 | sha1: sha256:02e8f0ff0fb222405df5159b7c9c1d7d1111145ed1c483e7df4d5079107ed2ac 17 | packages: [] 18 | packages: 19 | - name: nexus 20 | version: 037406ec5a0cdbb00da4d94010f137ef3c91c81249753b37c21d5179c0c1c205 21 | fingerprint: 037406ec5a0cdbb00da4d94010f137ef3c91c81249753b37c21d5179c0c1c205 22 | sha1: sha256:b75e655c535da718e0d7f1ee478b25c4698368aae57f361af28df373bc76d0f8 23 | dependencies: [] 24 | - name: nexus-scripts 25 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 26 | fingerprint: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 27 | sha1: sha256:e2d4e0f91d719f7bf55e37f6b00528469e98994fadd095c82d73e6a66529c34c 28 | dependencies: [] 29 | license: 30 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 31 | fingerprint: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 32 | sha1: sha256:59fb9c77736cec566319842dee2ef06102d498011cb21e3e752998ea351e21cf 33 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.14.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.14.1 3 | commit_hash: 01aa21f 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 8 | fingerprint: b72e4a60678b1cf6123e107f27b3361cf5065adc2934596c799e9d7c9703852c 9 | sha1: sha256:79dfa7515de642e8f028a08b1a906f53af726ecb5a758b54c081db4fcf7d31c1 10 | packages: 11 | - nexus 12 | - nexus-scripts 13 | - name: nexus-backup 14 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 15 | fingerprint: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 16 | sha1: sha256:c0c904b7204837c8c2d75a0a25a9371131983542264a362fc280d797da832a5c 17 | packages: [] 18 | packages: 19 | - name: nexus 20 | version: 6992e88a55cb43c6e7ba25be94050188aff4583e8a61547eedea8fc4aae106de 21 | fingerprint: 6992e88a55cb43c6e7ba25be94050188aff4583e8a61547eedea8fc4aae106de 22 | sha1: sha256:dbece0b4f3454283e6583d03372dafb54e220f8a8abd45f641336c1231b799d2 23 | dependencies: [] 24 | - name: nexus-scripts 25 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 26 | fingerprint: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 27 | sha1: sha256:162f8b90953dd5f0eb27e5423ce7f1e5bf7058951bfd7f162254eab4da883914 28 | dependencies: [] 29 | license: 30 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 31 | fingerprint: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 32 | sha1: sha256:89417b4ac0717a27a7e825d3d03fdafa93c84cc690a246acb533bfbb1376886e 33 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.15.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.15.0 3 | commit_hash: eb6d14f 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: fe7355d06f605b422c8fb7a1cfac67c43c9066ab99ec2d86e46109fe1da23c8b 8 | fingerprint: fe7355d06f605b422c8fb7a1cfac67c43c9066ab99ec2d86e46109fe1da23c8b 9 | sha1: sha256:f3dd1bb41e95a40581a30222ba3be056284d01d3cbcf8922bcf740430da1ccda 10 | packages: 11 | - nexus 12 | - nexus-scripts 13 | - name: nexus-backup 14 | version: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 15 | fingerprint: 658d7ee92d695a5c295ab0c64c0d44111d7383c424e443e2a63d975ab81f988c 16 | sha1: sha256:8421fbd18b9a913fcd71aa11bf6349767575159cf15258f10027c12d04f4094b 17 | packages: [] 18 | packages: 19 | - name: nexus 20 | version: 0d434850642743cfcbed761147798e40acc72c1f9165bcbb8e20a2debfd84d71 21 | fingerprint: 0d434850642743cfcbed761147798e40acc72c1f9165bcbb8e20a2debfd84d71 22 | sha1: sha256:35f03ddf122070d1fbd18fda06a4a24aee9bf9b53aaebdf9f449fdf3ee707119 23 | dependencies: [] 24 | - name: nexus-scripts 25 | version: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 26 | fingerprint: 1291fc92d159ee89ffd66f1ae17e10b8292ad103392a1a3d7e929e30286f2aa5 27 | sha1: sha256:60c6862264076becd6e03a84cdbebceea291f5be1c158c2b3d5ce3866803ed96 28 | dependencies: [] 29 | license: 30 | version: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 31 | fingerprint: ae18946b5cd7a9a88e62de3230d811980fa47606843e45b52990c198e2f267b5 32 | sha1: sha256:bbc1805a7fb4c1b36cc6b8b8c7c1c18122dc947a28376787f6fa6b64bf8d9f8c 33 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.2.0.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: a3f64bbca0270aab1a38975c4f69b65800a00ee2 5 | fingerprint: a3f64bbca0270aab1a38975c4f69b65800a00ee2 6 | sha1: 97f210d886452b66f45dc21bd560056a155cb80e 7 | dependencies: [] 8 | - name: nexus 9 | version: 459317048d44f2ce6a2a25d795a1d43c48cd3af9 10 | fingerprint: 459317048d44f2ce6a2a25d795a1d43c48cd3af9 11 | sha1: 3c752521030a7d9c48692e4d63be8531b37ba799 12 | dependencies: [] 13 | jobs: 14 | - name: nexus-backup 15 | version: 7a695219092b43b692c12a116c519fe514239e09 16 | fingerprint: 7a695219092b43b692c12a116c519fe514239e09 17 | sha1: e8c9520b3d2dd7067ffbb3712d4931eba582ac58 18 | - name: nexus 19 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 20 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 21 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 22 | commit_hash: f18d5dcd 23 | uncommitted_changes: true 24 | name: nexus 25 | version: 0.2.0 26 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.3.0.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 5 | fingerprint: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 6 | sha1: 7b310671025a6102cfa6fc9456867e684cbf6e85 7 | dependencies: [] 8 | - name: nexus 9 | version: ebe270ad400c9ba008f87005d79e3abf6ad135eb 10 | fingerprint: ebe270ad400c9ba008f87005d79e3abf6ad135eb 11 | sha1: 3cc82d9b459499d702e5dbef75a7ab80a1aba6d2 12 | dependencies: [] 13 | jobs: 14 | - name: nexus-backup 15 | version: 93dae5c85e128b6e9262880b10bbfb53209fb2f5 16 | fingerprint: 93dae5c85e128b6e9262880b10bbfb53209fb2f5 17 | sha1: 6175b212cc5fc7056ef74f88542bf917abecd1eb 18 | - name: nexus 19 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 20 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 21 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 22 | commit_hash: 619933ec 23 | uncommitted_changes: true 24 | name: nexus 25 | version: 0.3.0 26 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.3.1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 5 | fingerprint: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 6 | sha1: 7b310671025a6102cfa6fc9456867e684cbf6e85 7 | dependencies: [] 8 | - name: nexus 9 | version: ebe270ad400c9ba008f87005d79e3abf6ad135eb 10 | fingerprint: ebe270ad400c9ba008f87005d79e3abf6ad135eb 11 | sha1: 3cc82d9b459499d702e5dbef75a7ab80a1aba6d2 12 | dependencies: [] 13 | jobs: 14 | - name: nexus-backup 15 | version: bf894878ed3d3c336a9ca4c75cbc5eebe9bce3ef 16 | fingerprint: bf894878ed3d3c336a9ca4c75cbc5eebe9bce3ef 17 | sha1: 2ec52f5482fe29a6ada41209bbe2976c73ddb03c 18 | - name: nexus 19 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 20 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 21 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 22 | commit_hash: 6ae897c0 23 | uncommitted_changes: true 24 | name: nexus 25 | version: 0.3.1 26 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.3.2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 5 | fingerprint: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 6 | sha1: 7b310671025a6102cfa6fc9456867e684cbf6e85 7 | dependencies: [] 8 | - name: nexus 9 | version: ebe270ad400c9ba008f87005d79e3abf6ad135eb 10 | fingerprint: ebe270ad400c9ba008f87005d79e3abf6ad135eb 11 | sha1: 3cc82d9b459499d702e5dbef75a7ab80a1aba6d2 12 | dependencies: [] 13 | jobs: 14 | - name: nexus-backup 15 | version: 7c9f823b7ac5fe96a89c304f80c44738c9943e24 16 | fingerprint: 7c9f823b7ac5fe96a89c304f80c44738c9943e24 17 | sha1: bbdc3a4288db8d514b33959f41ba8d976c579264 18 | - name: nexus 19 | version: 4dce7b7b14134b51bad30455d5d99e71a5d26368 20 | fingerprint: 4dce7b7b14134b51bad30455d5d99e71a5d26368 21 | sha1: 8b23a637a864bc5902bf9e2b389c52f70a373f5f 22 | commit_hash: 4a69854c 23 | uncommitted_changes: true 24 | name: nexus 25 | version: 0.3.2 26 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.4.0.yml: -------------------------------------------------------------------------------- 1 | --- 2 | packages: 3 | - name: java 4 | version: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 5 | fingerprint: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 6 | sha1: 7b310671025a6102cfa6fc9456867e684cbf6e85 7 | dependencies: [] 8 | - name: nexus 9 | version: 0710be6ae5b9f7232fd0b5e7b37cf5ab59827b82 10 | fingerprint: 0710be6ae5b9f7232fd0b5e7b37cf5ab59827b82 11 | sha1: 1834dbdb6de19c18b7d01c09efcdd6a300e13b90 12 | dependencies: [] 13 | jobs: 14 | - name: nexus-backup 15 | version: 7c9f823b7ac5fe96a89c304f80c44738c9943e24 16 | fingerprint: 7c9f823b7ac5fe96a89c304f80c44738c9943e24 17 | sha1: bbdc3a4288db8d514b33959f41ba8d976c579264 18 | - name: nexus 19 | version: 763e1522b00b4260e6589a00a47ad84d356fc4e9 20 | fingerprint: 763e1522b00b4260e6589a00a47ad84d356fc4e9 21 | sha1: cfb29cb0d0cbc2c1cdb71a503c17d9650ed1fa61 22 | license: 23 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 24 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 25 | sha1: b77f875105699d7c9466b5b587b668b8dc0f6a48 26 | commit_hash: de7b02d3 27 | uncommitted_changes: true 28 | name: nexus 29 | version: 0.4.0 30 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.4.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.4.1 3 | commit_hash: 41ebd04 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8b568ca2614a43c8478f4da2dfc48210a750f972 8 | fingerprint: 8b568ca2614a43c8478f4da2dfc48210a750f972 9 | sha1: bf5cf5671a8114dde8b8304d932eb1f3cf4e3f7d 10 | - name: nexus-backup 11 | version: 6db553d6e7d1b97b5a9debeff36755497e1f29b6 12 | fingerprint: 6db553d6e7d1b97b5a9debeff36755497e1f29b6 13 | sha1: 5a876387f9b1594501f367a41e3f43807c314528 14 | packages: 15 | - name: java 16 | version: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 17 | fingerprint: df3d2ec2bb9db2fb0b756c3c277ae535e38ce20f 18 | sha1: b1006eaeef5df2e2b368e9009ddcf7780f1efd65 19 | dependencies: [] 20 | - name: nexus 21 | version: 0710be6ae5b9f7232fd0b5e7b37cf5ab59827b82 22 | fingerprint: 0710be6ae5b9f7232fd0b5e7b37cf5ab59827b82 23 | sha1: 0e28a91d47a7bff686078d4689992640651ad52b 24 | dependencies: [] 25 | license: 26 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 27 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 28 | sha1: f6dbc900bed9e9ea78870329c1f8be71fe18923a 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.5.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.5.0 3 | commit_hash: 4cf3280 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8b568ca2614a43c8478f4da2dfc48210a750f972 8 | fingerprint: 8b568ca2614a43c8478f4da2dfc48210a750f972 9 | sha1: 74f1bb2e9faf6c5b6588e98b5a28c3e9e232fd1f 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: e15d50890641fd3451288da48942cc932f8ac889 14 | packages: 15 | - name: java 16 | version: c547b43e6e897daa0f4739fe2351c1b8645d1d99 17 | fingerprint: c547b43e6e897daa0f4739fe2351c1b8645d1d99 18 | sha1: a53c31251b8664eb875f31b91d5b550a0ad077b8 19 | dependencies: [] 20 | - name: nexus 21 | version: 81e8416d0aabc129c1bb412f7424580c7899f6b9 22 | fingerprint: 81e8416d0aabc129c1bb412f7424580c7899f6b9 23 | sha1: 59915a71f1f832fcd94b0ca76c876cbbe000e522 24 | dependencies: [] 25 | license: 26 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 27 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 28 | sha1: 72d4cc9e5e0737986b0fa87a31062d957b09adf7 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.5.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.5.1 3 | commit_hash: 0a620fc 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8b568ca2614a43c8478f4da2dfc48210a750f972 8 | fingerprint: 8b568ca2614a43c8478f4da2dfc48210a750f972 9 | sha1: 569ead94946b5dcd290d3489799c457a291a539b 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 8362c9fbc9e7a0c4847900d931110c50895f6ea9 14 | packages: 15 | - name: java 16 | version: c547b43e6e897daa0f4739fe2351c1b8645d1d99 17 | fingerprint: c547b43e6e897daa0f4739fe2351c1b8645d1d99 18 | sha1: 62d1d55fbe1ed8d424ad120ad5bb4d58a8510ac8 19 | dependencies: [] 20 | - name: nexus 21 | version: c034558041bbefaff87819cf7769cf24f72199c2 22 | fingerprint: c034558041bbefaff87819cf7769cf24f72199c2 23 | sha1: e44b4ccf7c5d587bb015842a37ad54b8f70e6bc4 24 | dependencies: [] 25 | license: 26 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 27 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 28 | sha1: d743809f7fa2ba1d955c1db5ef6fc05c899c74c1 29 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.6.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.6.0 3 | commit_hash: a3426d1 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 0f636c23babf5577dab1f9af2dc3c11b1bb04af6 8 | fingerprint: 0f636c23babf5577dab1f9af2dc3c11b1bb04af6 9 | sha1: b92cd478714b7a3f1bab6420966d6a9d2e958bc7 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: eeb164a59e49efcfe4570437c90866141b906e85 14 | packages: 15 | - name: java 16 | version: c547b43e6e897daa0f4739fe2351c1b8645d1d99 17 | fingerprint: c547b43e6e897daa0f4739fe2351c1b8645d1d99 18 | sha1: 3a0f9763618cfdc88ef67275a2058633c12f07a1 19 | dependencies: [] 20 | - name: nexus 21 | version: c034558041bbefaff87819cf7769cf24f72199c2 22 | fingerprint: c034558041bbefaff87819cf7769cf24f72199c2 23 | sha1: 6152c6bd7c455bef432fcb716f9b128cc4353aed 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: c1502532d58fd5af61d62051f8fdf8738d8f830e 27 | fingerprint: c1502532d58fd5af61d62051f8fdf8738d8f830e 28 | sha1: 71594b3a0c712b0407a8367e7384b91fba80ca74 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: 07f9ef6084d0b2eb0f311ee122940517ecedb638 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.7.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.7.0 3 | commit_hash: f0dc14d 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 199155328f9783fd33e4e865340168432f56c721 8 | fingerprint: 199155328f9783fd33e4e865340168432f56c721 9 | sha1: 1068480958a2fef63c874b854283614c1773cc28 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: da3f3554337b57dd0ebc1c596f0b7f9685d19501 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: 719e430e8df6231cd030229cb498406bf186d873 19 | dependencies: [] 20 | - name: nexus 21 | version: 79868ccbd90aec8deec9d5a4af6aca4d7a80b269 22 | fingerprint: 79868ccbd90aec8deec9d5a4af6aca4d7a80b269 23 | sha1: 6d1f2b22f9b3ba7c8d5a7d53d36b2841abdccaf2 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: 5a01ea77d72deeafc59f5d43122ca5644be45229 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: bfd7dec98edb88adb7e43356f47640a6ac41f7c6 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.7.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.7.1 3 | commit_hash: 1c05939 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: cce04ade41d02d7038dcc52d8182e157cad017f3 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 9941a3834a0c01d19918b8cdb02d7a3002e0ab78 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: 410f2d8111666fff16c983e4841f1e33e1ff7abe 19 | dependencies: [] 20 | - name: nexus 21 | version: e557cfebb7f91c7471abf13eb10ef6048b1be065 22 | fingerprint: e557cfebb7f91c7471abf13eb10ef6048b1be065 23 | sha1: 5b4eef24b6a029cf95b0ee09242540f0ca54d1e3 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: bbc1dd358da77a66b92da4215717e6d084199dc7 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: a79891394bccd93bdc288ddcc256d0f81559e2f5 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.8.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.8.0 3 | commit_hash: fb412d0 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: c8f2d2c2a2c1d909b0b2c858ea847010a6663bd8 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 8b8e1daa83e46dd57754ead4e990b75aee520c5c 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: 614f7d3dddb6e3aab28638853a7ef3cc7d46d159 19 | dependencies: [] 20 | - name: nexus 21 | version: e557cfebb7f91c7471abf13eb10ef6048b1be065 22 | fingerprint: e557cfebb7f91c7471abf13eb10ef6048b1be065 23 | sha1: 4c66f16f1960e15c981d57c447c54c72bc3cef58 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: fb470f3899949ef717b0a7aeb9f1c1c5c59b94d5 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: 04eb2b4d5f63a2581942f56b7085eca85e3530b2 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.9.0.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.9.0 3 | commit_hash: 303ccf8 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: 2f8caeda9eb7a638805ab89460094bac25b208de 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: bf5de92bc1321c85006e0fa106639ac9a3672f30 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: 9f11f7a6e1699c8448fe1fb05147244cfed18692 19 | dependencies: [] 20 | - name: nexus 21 | version: 394620c912f23f403c76b44f565ddd5761dbff30 22 | fingerprint: 394620c912f23f403c76b44f565ddd5761dbff30 23 | sha1: fe7e282856b1907b45f66b2dcdd64a34dc22388a 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: 136fc75e6f2a684128753a2155f1c147e460e1d9 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: 427c28a37ae36a5ac01a923091fd0bca3f2a99c1 34 | -------------------------------------------------------------------------------- /releases/nexus/nexus-0.9.1.yml: -------------------------------------------------------------------------------- 1 | name: nexus 2 | version: 0.9.1 3 | commit_hash: 2f105b7 4 | uncommitted_changes: true 5 | jobs: 6 | - name: nexus 7 | version: 8c710526101709f84a57e9fc3b952f74f387e924 8 | fingerprint: 8c710526101709f84a57e9fc3b952f74f387e924 9 | sha1: be3041615d1bded6c6b5b679d49b5b2e9a6b90cb 10 | - name: nexus-backup 11 | version: cb941b2d5bf1d700d641351126b5f5bec3494f34 12 | fingerprint: cb941b2d5bf1d700d641351126b5f5bec3494f34 13 | sha1: 4e000e40a5ee2a43617f44dccfd970cb0a82ca76 14 | packages: 15 | - name: java 16 | version: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 17 | fingerprint: 1ed817840ef5fdb7dcf6c672d0332e404fb966ae 18 | sha1: db439fd1ff32c87e7dc048cd69269ff20d0555d1 19 | dependencies: [] 20 | - name: nexus 21 | version: e60012165ec23b42d119b3121d89b5f0c254a191 22 | fingerprint: e60012165ec23b42d119b3121d89b5f0c254a191 23 | sha1: 4fb34ffc9b0f8150c3a1d709be96cc0eb08b8077 24 | dependencies: [] 25 | - name: nexus-scripts 26 | version: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 27 | fingerprint: 127f754f7d2a2fb8468ad44b7abfe3cef224d001 28 | sha1: 928f51438463b48639013049df2d5bab52daa6a8 29 | dependencies: [] 30 | license: 31 | version: 32a7d007da7b9293b4f7c7eb94805b1681914e19 32 | fingerprint: 32a7d007da7b9293b4f7c7eb94805b1681914e19 33 | sha1: 9325ca55abf544f551191ad2421ab7269ea23d69 34 | -------------------------------------------------------------------------------- /src/nexus-scripts/change_admin_password.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function change_admin_password() { 4 | local NEXUS_URL=$1 5 | local NEXUS_OLD_PWD=$2 6 | local NEXUS_NEW_PWD=$3 7 | shift 3 8 | local CURL_OPTS="$@" 9 | local SCRIPT_NAME=change_admin_password 10 | 11 | read -r -d '' SCRIPT_JSON << EOF 12 | { 13 | "name": "${SCRIPT_NAME}", 14 | "type": "groovy", 15 | "content": "security.securitySystem.changePassword('admin', args)" 16 | } 17 | EOF 18 | 19 | CHECK_SCRIPT_STATUS=`curl ${CURL_OPTS} -s -o /dev/null -I -w "%{http_code}" -u "admin:${NEXUS_OLD_PWD}" "${NEXUS_URL}/service/rest/v1/script/${SCRIPT_NAME}"` 20 | 21 | if [ "${CHECK_SCRIPT_STATUS}" == "404" ];then 22 | echo "> ${SCRIPT_NAME} is not found (${CHECK_SCRIPT_STATUS})" 23 | echo "> creating script (${SCRIPT_NAME}) ..." 24 | curl ${CURL_OPTS} -H "Accept: application/json" -H "Content-Type: application/json" -d "${SCRIPT_JSON}" -u "admin:${NEXUS_OLD_PWD}" "${NEXUS_URL}/service/rest/v1/script/" 25 | elif [ "${CHECK_SCRIPT_STATUS}" == "401" ];then 26 | echo "> Unauthorized (${CHECK_SCRIPT_STATUS})" 27 | return 28 | else 29 | echo "> ${SCRIPT_NAME} is found (${CHECK_SCRIPT_STATUS})" 30 | echo "> updating script (${SCRIPT_NAME}) ..." 31 | curl ${CURL_OPTS} -XPUT -H "Accept: application/json" -H "Content-Type: application/json" -d "${SCRIPT_JSON}" -u "admin:${NEXUS_OLD_PWD}" "${NEXUS_URL}/service/rest/v1/script/${SCRIPT_NAME}" 32 | fi 33 | 34 | echo "> updating password ..." 35 | CHECK_RUN_STATUS=`curl ${CURL_OPTS} -s -o /dev/null -w "%{http_code}" -H "Content-Type: text/plain" -u "admin:${NEXUS_OLD_PWD}" "${NEXUS_URL}/service/rest/v1/script/${SCRIPT_NAME}/run" -d "${NEXUS_NEW_PWD}"` 36 | 37 | if [ "${CHECK_RUN_STATUS}" == "200" ];then 38 | echo "> succeeded!" 39 | else 40 | echo "> failed! (${CHECK_RUN_STATUS})" 41 | fi 42 | } --------------------------------------------------------------------------------