diff options
author | Evan Lojewski <github@meklort.com> | 2019-06-01 13:24:25 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-06-01 13:24:25 -0600 |
commit | f37c9492bca5cb8ddeb07574ec7b4732327bb777 (patch) | |
tree | 6080f0337a51accbb800ebd092b6f4d0e54f664b /.jenkins.groovy | |
parent | 3a5e8aba2ca066626ec4ec058153530c4591b1e5 (diff) | |
download | bcm5719-ortega-f37c9492bca5cb8ddeb07574ec7b4732327bb777.tar.gz bcm5719-ortega-f37c9492bca5cb8ddeb07574ec7b4732327bb777.zip |
Update jenkins config to build on fedora and debian.
Diffstat (limited to '.jenkins.groovy')
-rw-r--r-- | .jenkins.groovy | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/.jenkins.groovy b/.jenkins.groovy index 540537d..98d62be 100644 --- a/.jenkins.groovy +++ b/.jenkins.groovy @@ -41,39 +41,47 @@ /// POSSIBILITY OF SUCH DAMAGE. /// @endcond //////////////////////////////////////////////////////////////////////////////// -node('master') + +def build(nodeName) { - stage('checkout') + node(nodeName) { - checkout( - [$class: 'GitSCM', branches: [[name: '**']], - browser: [$class: 'GithubWeb', - repoUrl: 'https://github.com/'], - doGenerateSubmoduleConfigurations: false, - extensions: [ - [$class: 'SubmoduleOption', - disableSubmodules: false, - parentCredentials: false, - recursiveSubmodules: true, - reference: '', - trackingSubmodules: false]], - submoduleCfg: [], - userRemoteConfigs: [[url: 'https://github.com/meklort/bcm5719-fw.git']]]) - } - - stage('build') - { - withEnv(['PATH+WHATEVER=/usr/local/bin']) { - sh '''#!/bin/bash - rm -rf build - mkdir build - cd build - cmake .. -G Ninja - ninja - ''' + stage('checkout') + { + checkout( + [$class: 'GitSCM', branches: [[name: '**']], + browser: [$class: 'GithubWeb', + repoUrl: 'https://github.com/'], + doGenerateSubmoduleConfigurations: false, + extensions: [ + [$class: 'SubmoduleOption', + disableSubmodules: false, + parentCredentials: false, + recursiveSubmodules: true, + reference: '', + trackingSubmodules: false]], + submoduleCfg: [], + userRemoteConfigs: [[url: 'https://github.com/meklort/bcm5719-fw.git']]]) + } + + stage('build') + { + withEnv(['PATH+WHATEVER=/usr/local/bin']) { + sh '''#!/bin/bash + rm -rf build + mkdir build + cd build + cmake .. -G Ninja + ninja + ''' + } + // archiveArtifacts 'release' } - // archiveArtifacts 'release' + + cleanWs() } - - cleanWs() } + + +build('master') +build('debian') |