├── .gitignore ├── LICENSE ├── LV-CLI Common Steps.vipb ├── README.md ├── docs ├── CLI Tutorial.pdf └── required-jenkins-plugins.md ├── steps ├── echo.vi ├── github_commenter.py ├── labview-diff.bat ├── lv-build.vi ├── lv-cli-steps.lvlib ├── lv-cli-steps.lvlps ├── lv-cli-steps.lvproj ├── lvDiff.vi ├── post_pics_to_pr.py ├── run-utf.vi ├── run-vi-analyzer.vi ├── run-vi-tester.vi ├── setVipBuildNumber.vi ├── subVI │ ├── Move Job Files to Workspace.vi │ └── Reformat LV Version String.vi ├── vipInstall.vi ├── vipPublish.vi ├── vipUninstall.vi ├── vipbBuild.vi ├── vipcApply.vi └── vipmUpdate.vi └── vars ├── checkCommits.groovy ├── commitPackageToGit.groovy ├── dcafPipeline.groovy ├── lvBuild.groovy ├── lvDiff.groovy ├── postClean.groovy ├── preClean.groovy ├── sendEmails.groovy ├── setVIPBuildNumber.groovy ├── utfTest.groovy ├── vipInstall.groovy ├── vipPublish.groovy ├── vipUninstall.groovy ├── vipbBuild.groovy └── vipmUpdate.groovy /.gitignore: -------------------------------------------------------------------------------- 1 | *.vip 2 | *.aliases -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LV-CLI Common Steps.vipb: -------------------------------------------------------------------------------- 1 | 2 | 3 | ni_lib_LV_CLI_Common_Steps 4 | 1.0.2.16 5 | false 6 | . 7 | exports 8 | National Instruments 9 | 10 | Apache 2.0 11 | 14.0 12 | false 13 | 00000CFC002900000012000000020000000D01000000000100000000000A000000080000000000240024002900000012000000020000000D00B2B2B900010000000000100000001000000002002300000000000000000023002900000012000000020000000D00FCFCFD00010000000000100000001000000002002200010001000100010022002900000012000000020000000D00B2B2B900010000000000100000001000000002000000240024002400240000002900000012000000020000000D0080808A00010000000000100000001000000002000100230023002300230001001D00000C1800000C00000200020022002200180000000000FFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000000000000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFF000000000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFF000000000000FFFFFF000000000000FFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFF000000FFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFF6C00006C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFFCCCCFF6C00006C00006C0000CCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C00006C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C00006C00006C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C00006C00006C0000CCCCFF6C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFFCCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C0000CCCCFF6C00006C0000CCCCFFCCCCFF6C0000CCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFFCCCCFF 14 | LV-CLI Common Steps 15 | true 16 | LabVIEW 17 | 18 | 19 | 20 | jki_labs_tool_vi_tester >=2.0.0.285 21 | jki_lib_vi_tester_junit_xml_results >=2.0.1.16 22 | jki_lib_vipm_api >=2014.0.0.38 23 | ni_lib_utf_junit_report >=1.0.0.39 24 | wiresmith_technology_lib_labview_cli >=1.2.0.1 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | LV-CLI Common Steps.vipc 35 | 36 | Installs common continuous integration steps for use with the LabVIEW-CLI toolkit from Wiresmith Technologies 37 | Installs common continuous integration steps for use with the LabVIEW-CLI toolkit from Wiresmith Technologies. 38 | 39 | Run VI 40 | Execute LV Build Spec 41 | Run UTF tests in project with JUnit results 42 | Run Vi Tester with JUnit results 43 | Run VI Analyzer 44 | Build VI Package* 45 | Install VI Package* 46 | Uninstall VI Package* 47 | Publish VI Package* 48 | Update Installed VI Packages* 49 | Apply VIPC* 50 | 51 | *: Requires the JKI VIPM Pro license to use 52 | 53 | 54 | NI Systems Engineering 55 | http://github.com/DCAF/buildsystem/tree/lv-ci 56 | Added utility to get next VIPB build number based on the highest of the following: build number defined in VIPB file, Jenkins build number, build number currently of the currently published version of the package. 57 | 58 | Fixed bug: handled error if attempted to kill VIPM process but VIPM process was not running 59 | Fixed bug: Failed to find maximum version in VIPM repository correctly 60 | 61 | 62 | 63 | false 64 | true 65 | <OS Public Documents>\National Instruments\LV-CLI Common Steps 66 | 67 | 68 | false 69 | true 70 | 71 | 72 | 73 | false 74 | true 75 | 76 | 77 | 78 | true 79 | 80 | 81 | 82 | true 83 | 84 | 85 | 86 | false 87 | true 88 | 89 | 90 | 91 | false 92 | true 93 | 94 | 95 | 96 | false 97 | true 98 | 99 | 100 | 101 | false 102 | true 103 | 104 | 105 | 106 | false 107 | true 108 | 109 | 110 | 111 | false 112 | true 113 | 114 | 115 | 116 | 117 | 118 | . 119 | 0 120 | false 121 | 0 122 | 123 | 124 | vars 125 | 0 126 | false 127 | 0 128 | 129 | 130 | . 131 | 132 | false 133 | 134 | 135 | . 136 | Prefix 137 | 138 | 139 | 140 | vars/sendEmails.groovy 141 | 142 | 143 | vars/dcafPipeline.groovy 144 | 145 | 146 | vars/commitPackageToGit.groovy 147 | 148 | 149 | vars/checkCommits.groovy 150 | 151 | 152 | .gitignore 153 | 154 | 155 | LICENSE 156 | 157 | 158 | README.md 159 | 160 | 161 | docs 162 | 163 | 164 | LICENSE 165 | 166 | 167 | 168 | false 169 | 170 | 171 | 172 | 173 | 174 | <random:32> 175 | false 176 | 177 | 178 | 179 | false 180 | 181 | 182 | Default 183 | false 184 | 185 | 00000847002900000012000000020000000D00FFFFFF000100000000000A0000000800000000002000200028000002800000024C000000020007001E00180000000000FFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000FC4E9312FAA4AAAAFAE4AABAFAA4AAAAFAA492ABF0000000F0028000002950000026100080002000F001F00180000000000FFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFF000000000000FFFFFF000000000000000000FFFFFF000000000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000000000FFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFF000000FFFFFFFFFFFF000000FFFFFF000000FFFFFF000000000000000000FFFFFF000000FFFFFF000000FFFFFF000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000007B1BB2AB7AA12ABA7AB132AB7A892AAA7AB12BAB700000007002900000012000000020000000D00CCCCFF000100000000000A0000000800190000002000200028000002D4000002A0001900000020002000180000000000FFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C00006C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFFFFFFFF6C00006C00006C0000FFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C00006C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C00006C00006C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C00006C00006C0000FFFFFF6C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFFFFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C0000FFFFFF6C00006C0000FFFFFFFFFFFF6C0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000C4E93122AA4AAAA2AE4AABA2AA4AAAA2AA492AB200000000 186 | 187 | Controls 188 | <menus>\Controls 189 | 190 | 191 | 192 | Functions 193 | <menus>\Categories 194 | 195 | 196 | false 197 | false 198 | 199 | 200 | 201 | true 202 | true 203 | true 204 | true 205 | true 206 | true 207 | false 208 | true 209 | true 210 | true 211 | true 212 | true 213 | true 214 | 215 | 216 | false 217 | false 218 | false 219 | 220 | 221 | false 222 | {product_name} {version_number} 223 | {author_name} - {company_name} 224 | {copyright} 225 | 226 | 227 | 228 | 229 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # buildsystem 2 | Location of reusable build script files, groovy libraries, and other infrastructure items needed for LabVIEW build servers. 3 | 4 | This library is built in LabVIEW 2014, and assumes the use of the [Wiresmith LabVIEW CLI](https://github.com/JamesMc86/LabVIEW-CLI) package. 5 | 6 | **Note**: National Instruments added command line interface actions for LabVIEW in the [LabVIEW 2018 release](http://zone.ni.com/reference/en-XX/help/371361R-01/lvupgrade/labview_features/), based in part on this package. Once installed, it supports LabVIEW 2014 and later. This potentially replaces both the Wiresmith CLI and this package. 7 | 8 | **NOTE**: There is a later version of these tools built with the NI LabVIEW CLI, including a public version of the awesome [pull request graphical diff integration](https://github.com/ni/niveristand-custom-device-build-tools/tree/master/lv/operations/DiffVI) prepared by @SimonRPSM, located [here](https://github.com/ni/niveristand-custom-device-build-tools/) 9 | -------------------------------------------------------------------------------- /docs/CLI Tutorial.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/docs/CLI Tutorial.pdf -------------------------------------------------------------------------------- /docs/required-jenkins-plugins.md: -------------------------------------------------------------------------------- 1 | # Required Jenkins plugins 2 | Plugin name | Description | Version 3 | -------------------------------------------| -------------------------------------------------------------------------------| ---------- 4 | [Ant Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Ant+Plugin)|Adds Apache Ant support to Jenkins|1.4 5 | [Authentication Tokens API Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Authentication+Tokens+API+Plugin)|This plugin provides an API for converting credentials into authentication tokens in Jenkins.|1.3 6 | [bouncycastle API Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Bouncy+Castle+API+Plugin)|This plugin provides an stable API to Bouncy Castle related tasks.|2.16.1 7 | [Branch API Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Branch+API+Plugin)|This plugin provides an API for multiple branch based projects.|2.0.8 8 | [build timeout plugin](http://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin)|This plugin allows builds to be automatically terminated after the specified amount of time has elapsed.|1.18 9 | [Credentials Binding Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin)|Allows credentials to be bound to environment variables for use from miscellaneous build steps.|1.11 10 | [Credentials Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin)|This plugin allows you to store credentials in Jenkins.|2.1.13 11 | [Display URL API](https://wiki.jenkins-ci.org/display/JENKINS/Display+URL+API+Plugin)|Provides the DisplayURLProvider extension point to provide alternate URLs for use in notifications|2 12 | [Docker Commons Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Docker+Commons+Plugin)|Provides the common shared functionality for various Docker-related plugins.|1.6 13 | [Docker Pipeline](http://wiki.jenkins-ci.org/display/JENKINS/Docker+Pipeline+Plugin)|Build and use Docker containers from pipelines.|1.1 14 | [Durable Task Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Durable+Task+Plugin)|Library offering an extension point for processes which can run outside of Jenkins yet be monitored.|1.13 15 | [Email Extension Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin)|This plugin is a replacement for Jenkins's email publisher|2.57.2 16 | [External Monitor Job Type Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs)|Adds the ability to monitor the result of externally executed jobs|1.7 17 | [Folders Plugin](https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin)|This plugin allows users to create "folders" to organize jobs. Users can define custom taxonomies (like by project type, organization type etc). Folders are nestable and you can define views within folders. Maintained by CloudBees, Inc.|6.0.3 18 | [Git client plugin](http://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin)|Utility plugin for Git support in Jenkins|2.4.5 19 | [Git plugin](http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin)|This plugin integrates Git with Jenkins.|3.3.0 20 | [GIT server Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Git+Server+Plugin)|Allows Jenkins to act as a Git server.|1.7 21 | [GitHub API Plugin](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+API+Plugin)|This plugin provides GitHub API for other plugins.|1.85 22 | [GitHub Branch Source Plugin](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Branch+Source+Plugin)|Multibranch projects and organization folders from GitHub. Maintained by CloudBees, Inc.|2.0.5 23 | [GitHub Organization Folder Plugin](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Organization+Folder+Plugin)|The functionality that was provided by this plugin has been moved to the GitHub Branch Source plugin. You can safely delete this plugin once there are no plugins that depend on this plugin installed.|1.6 24 | [GitHub plugin](http://wiki.jenkins-ci.org/display/JENKINS/Github+Plugin)|This plugin integrates GitHub to Jenkins.|1.27.0 25 | [Gradle Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Gradle+Plugin)|This plugin allows Jenkins to invoke Gradle build scripts directly.|1.26 26 | [Green Balls](http://wiki.jenkins-ci.org/display/JENKINS/Green+Balls)|Because green is better than blue! For color blind support configure user property.|1.15 27 | [HTML Publisher plugin](http://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin)|This plugin publishes HTML reports.|1.14 28 | [HTTP Request Plugin](http://wiki.jenkins-ci.org/display/JENKINS/HTTP+Request+Plugin)|This plugin sends a http request to an url with some parameters. See the release notes for changes and compatibility https://github.com/jenkinsci/http-request-plugin/releases|1.8.19 29 | [Icon Shim Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Icon+Shim+Plugin/icon-shim)|Allows plugins make full use of the layout tag when running on newer versions of Jenkins, while still being compatible with older versions.|2.0.3 30 | [Javadoc Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Javadoc+Plugin)||1.4 31 | [JavaScript GUI Lib: ACE Editor bundle plugin](https://wiki.jenkins-ci.org/display/JENKINS/ACE+Editor+Plugin)|JavaScript GUI Lib: ACE Editor bundle plugin.|1.1 32 | [JavaScript GUI Lib: Handlebars bundle plugin](https://wiki.jenkins-ci.org/display/JENKINS/Handlebars.js)|JavaScript GUI Lib: Handlebars bundle plugin.|1.1.1 33 | [JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin](https://wiki.jenkins-ci.org/display/JENKINS/jQuery+Detached+Plugin)|JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin.|1.2.1 34 | [JavaScript GUI Lib: Moment.js bundle plugin](https://wiki.jenkins-ci.org/display/JENKINS/Moment.js)|JavaScript GUI Lib: Moment.js bundle plugin.|1.1.1 35 | [Job DSL](https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin)|This plugin allows Jobs and Views to be defined via DSLs|1.61 36 | [JUnit Plugin](http://wiki.jenkins-ci.org/display/JENKINS/JUnit+Plugin)|Allows JUnit-format test results to be published.|1.2 37 | [LDAP Plugin](https://wiki.jenkins-ci.org/display/JENKINS/LDAP+Plugin)|Adds LDAP authentication to Jenkins|1.14 38 | [Mailer Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Mailer)|This plugin allows you to configure email notifications for build results|1.2 39 | [MapDB API Plugin](http://wiki.jenkins-ci.org/display/JENKINS/MapDB+API+Plugin)|This plugin provides a shared dependency on the MapDB library so that other plugins can co-operate when using this library.|1.0.9.0 40 | [Matrix Authorization Strategy Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Matrix+Authorization+Strategy+Plugin)|Offers matrix-based security authorization strategies (global and per-project).|1.5 41 | [Matrix Project Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Project+Plugin)|Multi-configuration (matrix) project type.|1.1 42 | [OWASP Markup Formatter Plugin](http://wiki.jenkins-ci.org/display/JENKINS/OWASP+Markup+Formatter+Plugin)|Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.|1.5 43 | [PAM Authentication plugin](http://wiki.jenkins-ci.org/display/JENKINS/PAM+Authentication+Plugin)|Adds Unix Pluggable Authentication Module (PAM) support to Jenkins|1.3 44 | [Pipeline](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin)|A suite of plugins that lets you orchestrate automation, simple or complex. See Pipeline as Code with Jenkins for more details.|2.5 45 | [Pipeline Graph Analysis Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Graph+Analysis+Plugin)|Provides a REST API to access pipeline and pipeline run data.|1.3 46 | [Pipeline Utility Steps](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Utility+Steps+Plugin)|Utility steps for pipeline jobs.|1.3.0 47 | [Pipeline: API](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+API+Plugin)|Plugin that defines Pipeline API.|2.13 48 | [Pipeline: Basic Steps](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Basic+Steps+Plugin)|Commonly used steps for Pipelines.|2.4 49 | [Pipeline: Build Step](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Build+Step+Plugin)|Adds the Pipeline step build to trigger builds of other jobs.|2.5 50 | [Pipeline: Declarative Agent API](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Definition+Plugin)|Replaced by Pipeline: Declarative Extension Points API plugin.|1.1.1 51 | [Pipeline: Declarative Extension Points API](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Definition+Plugin)|APIs for extension points used in Declarative Pipelines.|1.1.3 52 | [Pipeline: GitHub Groovy Libraries](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+GitHub+Library+Plugin)|Allows Pipeline Grrovy libraries to be loaded on the fly from GitHub.|1 53 | [Pipeline: Groovy](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Groovy+Plugin)|Pipeline execution engine based on continuation passing style transformation of Groovy scripts.|2.3 54 | [Pipeline: Input Step](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Input+Step+Plugin)|Adds the Pipeline step input to wait for human input or approval.|2.7 55 | [Pipeline: Job](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Job+Plugin)|Defines a new job type for pipelines and provides their generic user interface.|2.1 56 | [Pipeline: Milestone Step](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Milestone+Step+Plugin)|Plugin that provides the milestone step|1.3.1 57 | [Pipeline: Model API](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Definition+Plugin)|Model API for Declarative Pipeline.|1.1.3 58 | [Pipeline: Model Definition](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Definition+Plugin)|An opinionated, declarative Pipeline.|1.1.3 59 | [Pipeline: Multibranch](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Multibranch+Plugin)|Enhances Pipeline plugin to handle branches better by automatically grouping builds from different branches.|2.14 60 | [Pipeline: Nodes and Processes](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Nodes+and+Processes+Plugin)|Pipeline steps locking agents and workspaces, and running external processes that may survive a Jenkins restart or slave reconnection.|2.11 61 | [Pipeline: REST API Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+View+Plugin)|Provides a REST API to access pipeline and pipeline run data.|2.6 62 | [Pipeline: SCM Step](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+SCM+Step+Plugin)|Adds a Pipeline step to check out or update working sources from various SCMs (version control).|2.4 63 | [Pipeline: Shared Groovy Libraries](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Shared+Groovy+Libraries+Plugin)|Shared libraries for Pipeline scripts.|2.8 64 | [Pipeline: Stage Step](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+Step+Plugin)|Adds the Pipeline step stage to delineate portions of a build.|2.2 65 | [Pipeline: Stage Tags Metadata](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Model+Definition+Plugin)|Library plugin for Pipeline stage tag metadata.|1.1.3 66 | [Pipeline: Stage View Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+View+Plugin)|Pipeline Stage View Plugin.|2.6 67 | [Pipeline: Step API](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Step+API+Plugin)|API for asynchronous build step primitive.|2.9 68 | [Pipeline: Supporting APIs](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Supporting+APIs+Plugin)|Common utility implementations to build Pipeline Plugin|2.14 69 | [Plain Credentials Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Plain+Credentials+Plugin)|Allows use of plain strings and files as credentials.|1.4 70 | [Resource Disposer Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Resource+Disposer+Plugin)|Dispose resources asynchronously. Utility plugin for resources that require more retries or take a long time to delete.|0.6 71 | [Run Condition Extras Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Extras+Plugin)|Plugin provides extra run conditions and plugin integrations for Run Conditions Plugin.|0.2 72 | [Run Condition Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin)|Define conditions for the execution of build steps|1 73 | [SCM API Plugin](http://wiki.jenkins-ci.org/display/JENKINS/SCM+API+Plugin)|This plugin provides a new enhanced API for interacting with SCM systems.|2.1.1 74 | [Script Security Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Plugin)|Allows Jenkins administrators to control what in-process scripts can be run by less-privileged users.|1.27 75 | [Secure Requester Whitelist Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Secure+Requester+Whitelist+Plugin)|Allows an administrator to specify sites trusted to make JSONP or primitive-XPath REST API requests.|1.1 76 | [SSH Credentials Plugin](https://wiki.jenkins-ci.org/display/JENKINS/SSH+Credentials+Plugin)|Allows storage of SSH credentials in Jenkins|1.13 77 | [SSH Slaves plugin](https://wiki.jenkins-ci.org/display/JENKINS/SSH+Slaves+plugin)|Allows to launch agents over SSH, using a Java implementation of the SSH protocol.|1.17 78 | [Structs Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Structs+plugin)|Library plugin for DSL plugins that need names for Jenkins objects.|1.6 79 | [Subversion Plug-in](http://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin)||2.7.2 80 | [Timestamper](http://wiki.jenkins-ci.org/display/JENKINS/Timestamper)|Adds timestamps to the Console Output|1.8.8 81 | [Token Macro Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin)|This plug-in adds reusable macro expansion capability for other plug-ins to use.|2.1 82 | [Windows Slaves Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Windows+Slaves+Plugin)|Allows you to connect to Windows machines and start slave agents on them.|1.3.1 83 | [Workspace Cleanup Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin)|This plugin deletes the project workspace after a build is finished.|0.33 84 | -------------------------------------------------------------------------------- /steps/echo.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/echo.vi -------------------------------------------------------------------------------- /steps/github_commenter.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from __future__ import with_statement 4 | 5 | import sys 6 | import os 7 | import logging 8 | import json 9 | import post_pics_to_pr 10 | 11 | 12 | _moduleLogger = logging.getLogger(__name__) 13 | 14 | 15 | def _parse_options(args): 16 | import optparse 17 | parser = optparse.OptionParser("usage: %prog [options] TOKEN PICS PR INFO") 18 | 19 | # Setup parser 20 | parser.add_option( 21 | "-t", "--token", 22 | dest="token", 23 | metavar="TOKEN", 24 | help="Github Access token needed to perform write operations" 25 | ) 26 | parser.add_option( 27 | "-d", "--pic-dir", 28 | dest="picDir", 29 | metavar="PICS", 30 | help="Absolute path to the directory containing the pictures you want to upload" 31 | ) 32 | parser.add_option( 33 | "-p", "--pull-req", 34 | dest="pr", 35 | metavar="PR", 36 | help="Github pull request number where you want to comment" 37 | ) 38 | parser.add_option( 39 | "-i", "--info", 40 | dest="info", 41 | metavar="INFO", 42 | help="Information about the org, repo, and pull request you are trying to use, e.g. 'LabVIEW-DCAF/IntegrationTesting/PR-13'" 43 | ) 44 | parser.add_option( 45 | "-r", "--pic-repo", 46 | dest="picRepo", 47 | metavar="REPO", 48 | help="The owner and repo to post to on github, e.g. 'theSloopJohnB/thesloopjohnb' for https://github.com/theSloopJohnB/thesloopjohnb" 49 | ) 50 | 51 | debugGroup = optparse.OptionGroup(parser, "Debug") 52 | debugGroup.add_option( 53 | "-v", "--verbose", 54 | action="count", dest="verbosity", default=0, 55 | help="Turn on verbose output. (Useful if you really care to see what the tool is doing at all times.)" 56 | ) 57 | debugGroup.add_option( 58 | "-q", "--quiet", 59 | action="count", dest="quietness", default=0, 60 | help="Don't print anything to the module logger." 61 | ) 62 | debugGroup.add_option( 63 | "--test", 64 | action="store_true", dest="test", default=False, 65 | help="Run doctests then quit." 66 | ) 67 | parser.add_option_group(debugGroup) 68 | 69 | (options, args) = parser.parse_args(args) 70 | 71 | # We want to default to WARNING 72 | # Quiet should make us only show CRITICAL 73 | # Verbosity gives us granularity to control past that 74 | verbosity = 2 + (2 * options.quietness) - options.verbosity 75 | loggingLevel = { 76 | 0: logging.DEBUG, 77 | 1: logging.INFO, 78 | 2: logging.WARNING, 79 | 3: logging.ERROR, 80 | 4: logging.CRITICAL, 81 | }.get(verbosity, None) 82 | if loggingLevel is None: 83 | parser.error("Unsupported verbosity: %r" % verbosity) 84 | 85 | # Perform validation on results 86 | if options.test: 87 | return options, loggingLevel 88 | 89 | if args: 90 | parser.error("Positional arguments are not supported: %r" % (args, )) 91 | 92 | if options.picDir is None or not os.path.exists(options.picDir): 93 | parser.error("Picture directory does not exist: %r" % options.picDir) 94 | 95 | return options, loggingLevel 96 | 97 | 98 | def main(args): 99 | options, loggingLevel = _parse_options(args) 100 | 101 | logFormat = '(%(asctime)s) %(levelname)-5s %(name)s.%(funcName)s: %(message)s' 102 | logging.basicConfig(level=loggingLevel, format=logFormat) 103 | 104 | if options.test: 105 | import doctest 106 | print(doctest.testmod()) 107 | return 108 | else: 109 | post_pics_to_pr.post_pics_to_pr(options.token, options.picDir, options.info, options.pr, options.picRepo) 110 | 111 | return 0 112 | 113 | 114 | if __name__ == "__main__": 115 | retCode = main(sys.argv[1:]) 116 | sys.exit(retCode) 117 | -------------------------------------------------------------------------------- /steps/labview-diff.bat: -------------------------------------------------------------------------------- 1 | @SET vi1=%~f1 2 | @SET vi2=%~f2 3 | @SET working_dir=%~f3 4 | @SET lv_version=%4 5 | 6 | @REM only run diff if both files are VIs or there was a newly added VI 7 | 8 | @if "%vi1:~-3%" == ".vi" GOTO :VI2Check 9 | @if "%vi1%" == "\\.\nul" GOTO :VI2Check 10 | @GOTO :END 11 | 12 | :VI2Check 13 | @if "%vi2:~-3%" == ".vi" GOTO :DIFF_VI 14 | @GOTO :END 15 | 16 | :DIFF_VI 17 | labview-cli --kill --lv-ver %lv_version% L:\lvDiff.vi -- "%vi1%" "%vi2%" "%working_dir%" 18 | :END -------------------------------------------------------------------------------- /steps/lv-build.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/lv-build.vi -------------------------------------------------------------------------------- /steps/lv-cli-steps.lvlib: -------------------------------------------------------------------------------- 1 |  2 | 3 | &!#!!!!!!!)!"1!&!!!-!%!!!@````]!!!!"!!%!!!*%!!!*Q(C=\>5R4CMR%-<R,_A6N(M$F)Z[LJ!L\"8G#K'E8#3+*\KZ1K[1GG[O%)G7*F>9`H9G"$WEJ!%^#OQYW8R?W\`M7BOJFWPJD_:,Z?ZM_:,_^N9`_`(]<X^`68`PH$`V@RR`'D2`(H^8R`/RHM9=]E.Q'HP'@RR[`P>>+0INP_8`FPO,G`4<^_R#\5&%3VL1H':K3]V*HO2*HO2*HO2"(O2"(O2"(O2/\O2/\O2/\O2'<O2'<O2'<O3^EIN=Z#+(F#S?,*2-GES1H!R&S6PC34S**`(Q69EH]33?R*.Y/%7**`%EHM34?"CGR*.Y%E`C34R-V38:+TG?R-0U#DS"*`!%HM$$EAI]!3"9,*AYG!3'AM\A)0!%HM$$I1*0Y!E]A3@QU+X!%XA#4_!*0!TJ6S7[JF6S0%QDR_.Y()`D=4R-,=@D?"S0YX%],#@(YXA=B,/A-TE%/9/=%ZQPDM@R]#((YXA=D_.R0(4V/_4^SD2.K_2Y$)`B-4S'R`!QB1S0Y4%]BM@Q-+U-D_%R0)<(],#5$)`B-4Q'R&C5Z76-:AQU4D)#Q]/L\R<L>SG[R(K6;P/K.K6KM[EWE7JTK'[[[G;K<J,KYKMOKOJCK3[#[M?JU#K-;B(6Y(;C^LTP;&P;BD<2VL32NK)N;5-<_M5H\P>\\89\<<><<49<4>/E^8KN=2SV7KWU8#YV$-0\9_#'_PZ!/$S8\DE_NM@J:@(U=,XY/W5]4<@DY_NTE!_N\ZP_3X`!MV&8_DAPV_A.22X4F!!!!!! 4 | 335577088 5 | 1.0.0.0 6 | false 7 | 49 52 48 49 56 48 49 51 13 0 0 0 0 1 23 21 76 111 97 100 32 38 32 85 110 108 111 97 100 46 108 118 99 108 97 115 115 0 0 1 0 0 0 0 0 9 0 0 25 251 1 100 1 100 80 84 72 48 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 15 13 76 97 121 101 114 46 108 118 99 108 97 115 115 0 0 1 0 0 0 0 0 7 0 0 12 182 0 0 0 0 0 0 0 0 0 0 12 158 0 40 0 0 12 152 0 0 12 0 0 0 0 0 0 32 0 32 0 24 0 0 0 0 0 255 255 255 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 255 255 255 0 0 0 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 136 224 0 18 137 8 0 16 136 204 152 18 136 41 84 12 233 197 152 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 84 111 111 108 100 1 0 2 0 0 0 1 15 13 76 97 121 101 114 46 108 118 99 108 97 115 115 0 0 1 0 0 0 0 0 7 0 0 12 185 0 0 0 0 0 0 0 0 0 0 12 158 0 40 0 0 12 152 0 0 12 0 0 0 0 0 0 32 0 32 0 24 0 0 0 0 0 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 102 153 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 86 73 32 73 99 111 110 100 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 83 109 97 108 108 32 70 111 110 116 115 0 1 9 1 1 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /steps/lv-cli-steps.lvlps: -------------------------------------------------------------------------------- 1 | [ProjectWindow_Data] 2 | ProjectExplorer.ClassicPosition[String] = "112,615,595,987" 3 | 4 | -------------------------------------------------------------------------------- /steps/lvDiff.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/lvDiff.vi -------------------------------------------------------------------------------- /steps/post_pics_to_pr.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import requests 4 | import json 5 | import base64 6 | import os 7 | import datetime 8 | import logging 9 | 10 | _moduleLogger = logging.getLogger(__name__) 11 | 12 | def _create_header(token): 13 | return {'Authorization': 'token %s' % token.strip()} 14 | 15 | 16 | def _read_picture(file_name): 17 | with open(file_name, 'rb') as text: 18 | return base64.b64encode(text.read()).decode() 19 | 20 | 21 | def _post_file(file_data, folder, file_name, header,picRepo): 22 | # put encoded data into json request 23 | new_file_data = json.dumps({"message": "commit message", "content":file_data}) 24 | 25 | # post a picture to a repo 26 | url = 'https://api.github.com/repos/%s/contents/%s/%s' % (picRepo, folder, file_name) 27 | 28 | r=requests.put(url, data=new_file_data, headers=header) 29 | if (r.ok): 30 | _moduleLogger.info('Response code: %s', r.status_code) 31 | else: 32 | _moduleLogger.error('Bad response code: %s', r.status_code) 33 | _moduleLogger.error('Bad response text: %s', r.text) 34 | return r.json()['content']['download_url'] 35 | 36 | 37 | # post a comment on an issue 38 | def _post_comment_to_pr(urlPicPairs, pullRequestInfo, prNumber, header): 39 | formatString = "### %s: ![capture](%s)\n\n" 40 | body = """Bleep bloop! 41 | 42 | LabVIEW Diff Robot here with some diffs served up hot for your pull request. 43 | 44 | Notice something funny? Help fix me on [my GitHub repo.](https://github.com/LabVIEW-DCAF/buildsystem) 45 | 46 | 47 | """ 48 | for pair in urlPicPairs: 49 | body += formatString % pair 50 | 51 | org, repo, _ = pullRequestInfo.split('/') 52 | url = "https://api.github.com/repos/%s/%s/issues/%s/comments" % (org, repo, prNumber) 53 | data = json.dumps({"body":body}) 54 | r = requests.post(url, data=data, headers=header) 55 | if (r.ok): 56 | _moduleLogger.info('Response code: %s', r.status_code) 57 | else: 58 | _moduleLogger.error('Bad response code: %s', r.status_code) 59 | _moduleLogger.error('Bad response text: %s', r.text) 60 | 61 | def post_pics_to_pr(token, localPicfileDirectory, pullRequestInfo, prNumber, picRepo): 62 | header = _create_header(token) 63 | pics = [f for f in os.listdir(localPicfileDirectory) if f.endswith(".png")] 64 | folder = pullRequestInfo + '/' + datetime.datetime.now().strftime('%Y-%m-%d/%H:%M:%S') 65 | picUrls = [] 66 | for pic in pics: 67 | picData = _read_picture(os.path.join(localPicfileDirectory, pic)) 68 | picUrl = _post_file(picData, folder, os.path.split(pic)[1], header, picRepo) 69 | picUrls.append((pic, picUrl)) 70 | 71 | if picUrls != []: 72 | _post_comment_to_pr(picUrls, pullRequestInfo, prNumber, header) 73 | -------------------------------------------------------------------------------- /steps/run-utf.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/run-utf.vi -------------------------------------------------------------------------------- /steps/run-vi-analyzer.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/run-vi-analyzer.vi -------------------------------------------------------------------------------- /steps/run-vi-tester.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/run-vi-tester.vi -------------------------------------------------------------------------------- /steps/setVipBuildNumber.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/setVipBuildNumber.vi -------------------------------------------------------------------------------- /steps/subVI/Move Job Files to Workspace.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/subVI/Move Job Files to Workspace.vi -------------------------------------------------------------------------------- /steps/subVI/Reformat LV Version String.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/subVI/Reformat LV Version String.vi -------------------------------------------------------------------------------- /steps/vipInstall.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipInstall.vi -------------------------------------------------------------------------------- /steps/vipPublish.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipPublish.vi -------------------------------------------------------------------------------- /steps/vipUninstall.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipUninstall.vi -------------------------------------------------------------------------------- /steps/vipbBuild.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipbBuild.vi -------------------------------------------------------------------------------- /steps/vipcApply.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipcApply.vi -------------------------------------------------------------------------------- /steps/vipmUpdate.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LabVIEW-DCAF/buildsystem/18536facb9529da000dc5beb776db1576bf93681/steps/vipmUpdate.vi -------------------------------------------------------------------------------- /vars/checkCommits.groovy: -------------------------------------------------------------------------------- 1 | def call(continueBuild){ 2 | echo 'Checking for commits that were not made by the build system' 3 | MAX_MSG_LEN = 100 4 | def internalChangesOnly = true 5 | def changeString = "" 6 | 7 | echo "Gathering SCM changes" 8 | def changeLogSets = currentBuild.rawBuild.changeSets 9 | for (int i = 0; i < changeLogSets.size(); i++) { 10 | def entries = changeLogSets[i].items 11 | for (int j = 0; j < entries.length; j++) { 12 | def entry = entries[j] 13 | truncated_msg = entry.msg.take(MAX_MSG_LEN) 14 | if (truncated_msg != "Auto-update files from build, ignore this commit"){ 15 | internalChangesOnly=false 16 | } 17 | changeString += " - ${truncated_msg} [${entry.author}]\n" 18 | } 19 | } 20 | 21 | if (!changeString) { 22 | changeString = " - No new changes" 23 | internalChangesOnly = false 24 | } 25 | echo changeString 26 | if (internalChangesOnly){ 27 | echo 'This build contains only the version update commit from the last build - no need to build again. Exiting build.' 28 | continueBuild=false 29 | } 30 | else{ 31 | echo 'Build may proceed - this build was not triggered solely by the automatic version update commit from the previous build.' 32 | continueBuild=true 33 | } 34 | return continueBuild 35 | } 36 | -------------------------------------------------------------------------------- /vars/commitPackageToGit.groovy: -------------------------------------------------------------------------------- 1 | def call(vipbPath){ 2 | echo 'Commit only the VIPB such that the build number is correctly updated between builds, even if the build machine is lost' 3 | 4 | withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'DCAF-Build', usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD']]) { 5 | bat 'git config user.name' 6 | bat 'git config user.email' 7 | //These lines are commented out because they were only needed once to set up the build environment. They needed to be called from script because script runs as a different user, and I couldn't be arsed to find the right spot for it globally for all users. 8 | // bat 'git config --global user.email "yourname@yourcompany.com"' 9 | // bat 'git config --global user.name "your github username"' 10 | bat 'git commit -m "Auto-update files from build, ignore this commit" '+'"'+vipbPath+'"' 11 | def git_remote_url=bat returnStdout: true, script: '@git remote get-url origin' 12 | echo "Remote_URL raw: "+git_remote_url 13 | git_remote_url=git_remote_url.trim() //get rid of any trailing end of line characters 14 | git_remote_url=git_remote_url.drop(8) //Drop first 8 characters, which in our case are the https:// chars. This might break if we change access modes. 15 | bat "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${git_remote_url} HEAD:${env.JOB_NAME.replaceFirst('.+/', '')}" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vars/dcafPipeline.groovy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env groovy 2 | 3 | //note: this script assumes that it will be invoked from another script after that script has defined the necessary parameters 4 | 5 | //These are: utfPath, vipbPath, lvVersion 6 | 7 | //This script further assumes that Jenkins is configured (via the Pipeline Shared Libraries plugin) to implicitly include https://github.com/LabVIEW-DCAF/buildsystem 8 | 9 | def call(utfPaths,vipbPaths,lvVersion){ 10 | 11 | switch(lvVersion){ //This is to abstract out the different Jenkinsfile conventions of setting version to 14.0 instead of 2014. 12 | case "14.0": 13 | lvVersion="2014" 14 | break 15 | case "15.0": 16 | lvVersion="2015" 17 | break 18 | case "16.0": 19 | lvVersion="2016" 20 | break 21 | case "17.0": 22 | lvVersion="2017" 23 | break 24 | } 25 | 26 | def continueBuild 27 | node(lvVersion){ 28 | echo 'Starting build...' 29 | stage ('Pre-Clean'){ 30 | preClean() 31 | } 32 | stage ('SCM_Checkout'){ 33 | echo 'Attempting to get source from repo...' 34 | timeout(time: 5, unit: 'MINUTES'){ 35 | checkout scm 36 | } 37 | } 38 | 39 | stage ('Check Preconditions for Build'){ 40 | continueBuild=checkCommits() 41 | } 42 | if(continueBuild){ 43 | stage ('Temp Directories'){ 44 | bat 'mkdir build_temp' 45 | } 46 | stage ('UTF'){ 47 | for(int i=0; i < utfPaths.size(); i++){ 48 | 49 | //Iterate through each item in utfPaths array 50 | utfPath = utfPaths[i] 51 | echo 'UTF Project Path: ' +utfPath 52 | 53 | //Run unit tests for specified project with 30 minute timeout 54 | timeout(time: 30, unit: 'MINUTES'){ 55 | utfTest(utfPath, lvVersion) 56 | } 57 | } 58 | } 59 | 60 | 61 | 62 | stage ('VIPB_Build'){ 63 | for(int j=0; j < vipbPaths.size(); j++){ 64 | 65 | //Iterate through each item in vipbPaths array 66 | vipbPath = vipbPaths[j] 67 | echo 'VIPB version check' 68 | setVIPBuildNumber(vipbPath,'DCAF Unstable') 69 | echo 'VIPB path: '+vipbPath 70 | 71 | //Start VI Package build with 60 minute timeout 72 | timeout(time: 60, unit: 'MINUTES'){ 73 | vipbBuild(vipbPath,lvVersion) 74 | } 75 | } 76 | } 77 | if (env.BRANCH_NAME == 'master') { // Only deploy if on the master branch. 78 | stage ('VIP_Deploy'){ 79 | timeout(time: 10, unit: 'MINUTES'){ 80 | vipPublish('DCAF Unstable') 81 | } 82 | } 83 | } 84 | //stage ('SCM commit'){ 85 | // vipbPaths.each{vipbPath-> 86 | // commitPackageToGit(vipbPath) 87 | // } 88 | //} 89 | 90 | // If this change is a pull request and the DIFFING_PIC_REPO variable is set on the jenkins master, diff vis. 91 | if (env.CHANGE_ID && env.DIFFING_PIC_REPO) { 92 | stage ('Diff VIs'){ 93 | try { 94 | timeout(time: 60, unit: 'MINUTES') { 95 | lvDiff(lvVersion) 96 | echo 'Diff Succeeded!' 97 | } 98 | } catch (err) { 99 | currentBuild.result = "SUCCESS" 100 | echo "Diff Failed: ${err}" 101 | } 102 | } 103 | } 104 | 105 | stage ('Post-Clean'){ 106 | postClean() 107 | } 108 | } 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /vars/lvBuild.groovy: -------------------------------------------------------------------------------- 1 | def call(path, target_name, spec_name, lv_version) { 2 | echo "Build the build spec: ${spec_name} under target ${target_name} in project at ${path}" 3 | bat "labview-cli --kill --lv-ver ${lv_version} \"L:\\lv-build.vi\" -- \"${path}\" \"${target_name}\" \"${spec_name}\" \"build_temp\" \"${WORKSPACE}\"" 4 | } 5 | -------------------------------------------------------------------------------- /vars/lvDiff.groovy: -------------------------------------------------------------------------------- 1 | def call(lvVersion) { 2 | echo 'Running LabVIEW diff build between origin/master and this commit' 3 | def diffDir = "${WORKSPACE}\\diff_dir" 4 | bat "if exist ${diffDir} rd /s /q ${diffDir}" 5 | bat "mkdir ${diffDir}" 6 | bat "git difftool --no-prompt --extcmd=\"'L:\\labview-diff.bat' \$LOCAL \$REMOTE diff_dir ${lvVersion}\" origin/master HEAD" 7 | // Silencing echo so as to not print out the token. 8 | bat "@python L:\\github_commenter.py --token=${GITHUB_DIFF_TOKEN} --pic-dir=${diffDir} --pull-req=${CHANGE_ID} --info=${JOB_NAME} --pic-repo=${DIFFING_PIC_REPO}" 9 | } 10 | -------------------------------------------------------------------------------- /vars/postClean.groovy: -------------------------------------------------------------------------------- 1 | def call(){ 2 | echo 'Kill VIPM so it cannot hold onto any file or folder handles' 3 | bat 'taskkill /IM "VI Package Manager.exe" /F /FI "STATUS eq RUNNING"' 4 | echo 'List everything in the build-temp directory (debug line to be removed)' 5 | bat 'dir .\\build_temp' 6 | echo 'Archiving all artifacts in the build-temp directory' 7 | archiveArtifacts artifacts: 'build_temp/**' 8 | echo 'Cleaning out workspace directory' 9 | deleteDir() 10 | } 11 | -------------------------------------------------------------------------------- /vars/preClean.groovy: -------------------------------------------------------------------------------- 1 | def call(){ 2 | echo 'Cleaning out workspace directory: '+env.WORKSPACE 3 | deleteDir() 4 | } 5 | -------------------------------------------------------------------------------- /vars/sendEmails.groovy: -------------------------------------------------------------------------------- 1 | def call(){ 2 | //This is a test to determine if the mailer works correctly by forcing an unstable build. 3 | echo 'Sending emails out if build failed' 4 | echo 'Here is the reported changeset of the build:' 5 | echo currentBuild.rawBuild.changeSets 6 | currentBuild.result = 'FAILURE' 7 | step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])]) 8 | } 9 | -------------------------------------------------------------------------------- /vars/setVIPBuildNumber.groovy: -------------------------------------------------------------------------------- 1 | def call(vipbPath, vipmRepo){ 2 | echo "Calculating next build number for package at ${vipbPath}..." 3 | bat "labview-cli --kill \"L:\\setVipBuildNumber.vi\" -- \"${vipbPath}\" \"${WORKSPACE}\" \"${BUILD_NUMBER}\" \"${vipmRepo}\"" 4 | } 5 | -------------------------------------------------------------------------------- /vars/utfTest.groovy: -------------------------------------------------------------------------------- 1 | def call(path, lv_version){ 2 | echo 'Run basic tests before build' 3 | bat "labview-cli --kill --lv-ver ${lv_version} L:\\run-utf.vi -- \"${path}\" \"build_temp\\utf_results.xml\" \"${WORKSPACE}\"" 4 | echo 'Junit' 5 | junit allowEmptyResults: true, testResults: 'build_temp\\utf_results.xml' 6 | } 7 | -------------------------------------------------------------------------------- /vars/vipInstall.groovy: -------------------------------------------------------------------------------- 1 | def call(vipName, lvVersion) { 2 | echo 'Install the package '+ vipName 3 | bat "labview-cli --kill --lv-ver ${lvVersion} \"L:\\vipInstall.vi\" -- \"${vipName}\" ${lvVersion}" 4 | } 5 | -------------------------------------------------------------------------------- /vars/vipPublish.groovy: -------------------------------------------------------------------------------- 1 | def call(repoName){ 2 | echo 'Push the package to the internal repo' 3 | echo 'Scan build_temp directory for *.vipb pattern, publish each one it finds' 4 | 5 | def files = findFiles(glob: 'build_temp\\*.vip') 6 | 7 | echo "Found "+files.length+" VI Package files." 8 | 9 | if(files.length){ 10 | //make this a loop across all items in the files[] array. 11 | files.each{vip_file-> 12 | echo """${vip_file.name} 13 | 14 | ${vip_file.path} 15 | 16 | ${vip_file.directory} 17 | 18 | ${vip_file.length} 19 | 20 | ${vip_file.lastModified}""" 21 | bat "labview-cli --kill \"L:\\vipPublish.vi\" -- \"${vip_file.path}\" \"${repoName}\"" 22 | } 23 | } 24 | else{ 25 | echo 'No VIP files found.' 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vars/vipUninstall.groovy: -------------------------------------------------------------------------------- 1 | def call(vipName, lvVersion) { 2 | echo 'Uninstall the package '+ vipName 3 | bat "labview-cli --kill --lv-ver ${lvVersion} \"L:\\vipUninstall\" -- \"${vipName}\" ${lvVersion}" 4 | } 5 | -------------------------------------------------------------------------------- /vars/vipbBuild.groovy: -------------------------------------------------------------------------------- 1 | def call(path, lvVersion) { 2 | echo "Build the package at ${path}" 3 | bat "labview-cli --kill \"L:\\vipbBuild.vi\" -- \"${path}\" \"build_temp\" \"${WORKSPACE}\"" 4 | //bat "labview-cli --kill \"L:\\build.vi\" -- \"${path}\" \"${WORKSPACE}\\build_temp\"" 5 | } 6 | -------------------------------------------------------------------------------- /vars/vipmUpdate.groovy: -------------------------------------------------------------------------------- 1 | def call(lvVersion) { 2 | echo 'Install any updates to LabVIEW '+ lvVersion 3 | bat "labview-cli --kill --lv-ver ${lvVersion} \"L:\\vipmUpdate.vi\" -- ${lvVersion}" 4 | } 5 | --------------------------------------------------------------------------------