├── README.md ├── vars ├── auditTools.groovy ├── getVersionSuffix.groovy └── auditTools2.groovy └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # bootcamp-jenkins-library 2 | Shared libraries for Jenkins 3 | -------------------------------------------------------------------------------- /vars/auditTools.groovy: -------------------------------------------------------------------------------- 1 | def call() { 2 | node { 3 | sh ''' 4 | git version 5 | docker version 6 | node --version 7 | npm version 8 | ''' 9 | } 10 | } -------------------------------------------------------------------------------- /vars/getVersionSuffix.groovy: -------------------------------------------------------------------------------- 1 | def call(Map config) { 2 | node { 3 | if (config.isReleaseCandidate) { 4 | return config.rcNumber 5 | } else { 6 | return config.rcNumber + '+ci' + env.BUILD_NUMBER 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /vars/auditTools2.groovy: -------------------------------------------------------------------------------- 1 | def call(Map config) { 2 | node { 3 | echo "${config.message}" 4 | sh ''' 5 | git version 6 | docker version 7 | node --version 8 | npm version 9 | ''' 10 | } 11 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Lemoncode 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------