From f37c9492bca5cb8ddeb07574ec7b4732327bb777 Mon Sep 17 00:00:00 2001 From: Evan Lojewski Date: Sat, 1 Jun 2019 13:24:25 -0600 Subject: Update jenkins config to build on fedora and debian. --- .jenkins.groovy | 70 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 31 deletions(-) (limited to '.jenkins.groovy') 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') -- cgit v1.2.1