summaryrefslogtreecommitdiffstats
path: root/scripts/ci/Jenkinsfile
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2018-06-12 14:48:48 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2018-06-18 15:41:45 +0200
commit855b031e7597b0c16b2bd9f4c18321b6320c8ffe (patch)
tree614c9ee9fef062f07121d606dafaebb722ee003b /scripts/ci/Jenkinsfile
parent55e49cdb4b2d1d818844703a44483ff92041d80d (diff)
downloadmeta-updater-855b031e7597b0c16b2bd9f4c18321b6320c8ffe.tar.gz
Bitbake build from Jenkins
Diffstat (limited to 'scripts/ci/Jenkinsfile')
-rw-r--r--scripts/ci/Jenkinsfile29
1 files changed, 27 insertions, 2 deletions
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 @@
1pipeline { 1pipeline {
2 agent any 2 agent none
3 environment {
4 TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append'
5 TEST_AKTUALIZR_DIR = '.'
6 TEST_AKTUALIZR_BRANCH = 'aktualizr/master'
7 }
3 stages { 8 stages {
4 stage('checkout') { 9 stage('checkout') {
10 agent {
11 label 'bitbake'
12 }
5 steps { 13 steps {
6 checkout([$class: 'RepoScm', 14 checkout([$class: 'RepoScm',
7 manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo', 15 manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo',
8 manifestBranch: null, 16 manifestBranch: null,
9 manifestFile: null, 17 manifestFile: 'master.xml',
10 manifestGroup: null, 18 manifestGroup: null,
11 mirrorDir: null, 19 mirrorDir: null,
12 jobs: 0, 20 jobs: 0,
@@ -20,6 +28,23 @@ pipeline {
20 trace: false, 28 trace: false,
21 showAllChanges: false, 29 showAllChanges: false,
22 ]) 30 ])
31
32 // override meta-updater commit with currently tested branch
33 sh '''
34 META_UPDATER_COMMIT=$(git rev-parse HEAD)
35 cd updater-repo/meta-updater
36 git checkout $META_UPDATER_COMMIT
37 '''
38 }
39 }
40 stage('build-core-image-minimal') {
41 agent {
42 label 'bitbake'
43 }
44 steps {
45 sh 'scripts/ci/configure.sh'
46
47 sh 'scripts/ci/build.sh core-image-minimal'
23 } 48 }
24 } 49 }
25 } 50 }