From 855b031e7597b0c16b2bd9f4c18321b6320c8ffe Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Tue, 12 Jun 2018 14:48:48 +0200 Subject: Bitbake build from Jenkins --- scripts/ci/Jenkinsfile | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'scripts/ci/Jenkinsfile') diff --git a/scripts/ci/Jenkinsfile b/scripts/ci/Jenkinsfile index 0b4afa9..e7bcf6c 100644 --- a/scripts/ci/Jenkinsfile +++ b/scripts/ci/Jenkinsfile @@ -1,12 +1,20 @@ pipeline { - agent any + agent none + environment { + TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append' + TEST_AKTUALIZR_DIR = '.' + TEST_AKTUALIZR_BRANCH = 'aktualizr/master' + } stages { stage('checkout') { + agent { + label 'bitbake' + } steps { checkout([$class: 'RepoScm', manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo', manifestBranch: null, - manifestFile: null, + manifestFile: 'master.xml', manifestGroup: null, mirrorDir: null, jobs: 0, @@ -20,6 +28,23 @@ pipeline { trace: false, showAllChanges: false, ]) + + // override meta-updater commit with currently tested branch + sh ''' + META_UPDATER_COMMIT=$(git rev-parse HEAD) + cd updater-repo/meta-updater + git checkout $META_UPDATER_COMMIT + ''' + } + } + stage('build-core-image-minimal') { + agent { + label 'bitbake' + } + steps { + sh 'scripts/ci/configure.sh' + + sh 'scripts/ci/build.sh core-image-minimal' } } } -- cgit v1.2.3-54-g00ecf