summaryrefslogtreecommitdiffstats
path: root/scripts/ci/Jenkinsfile
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2018-06-22 15:09:57 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2018-06-25 14:07:17 +0200
commita3c960df21c5f820cd7aa592a449be667f65cf86 (patch)
tree18e167f0665ea3898dd3474b36fb0257396ba07b /scripts/ci/Jenkinsfile
parentd25358cf0127f769c6d2b3b73b1a50acae78cee9 (diff)
downloadmeta-updater-a3c960df21c5f820cd7aa592a449be667f65cf86.tar.gz
Add caching to CI bitbaking
Also fix various issues with environment variables and file transfers to Docker
Diffstat (limited to 'scripts/ci/Jenkinsfile')
-rw-r--r--scripts/ci/Jenkinsfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/ci/Jenkinsfile b/scripts/ci/Jenkinsfile
index 84eebca..803664f 100644
--- a/scripts/ci/Jenkinsfile
+++ b/scripts/ci/Jenkinsfile
@@ -1,9 +1,10 @@
1pipeline { 1pipeline {
2 agent none 2 agent none
3 environment { 3 environment {
4 TEST_AKTUALIZR_REMOTE = 'aktualizr'
4 TEST_AKTUALIZR_DIR = 'aktualizr' 5 TEST_AKTUALIZR_DIR = 'aktualizr'
5 TEST_AKTUALIZR_BRANCH = 'aktualizr/master' 6 TEST_AKTUALIZR_BRANCH = 'master'
6 TEST_BITBAKE_COMMON_DIR = "${env.HOME}/bitbake-common" 7 TEST_BITBAKE_COMMON_DIR = "/opt/jenkins/bitbake-common"
7 } 8 }
8 stages { 9 stages {
9 stage('checkout') { 10 stage('checkout') {
@@ -41,6 +42,9 @@ pipeline {
41 showAllChanges: false, 42 showAllChanges: false,
42 ]) 43 ])
43 44
45 // ignore bitbake build directories in docker
46 sh 'echo \'build*\' > .dockerignore'
47
44 // override meta-updater commit with currently tested branch 48 // override meta-updater commit with currently tested branch
45 sh ''' 49 sh '''
46 META_UPDATER_COMMIT=$(git rev-parse HEAD) 50 META_UPDATER_COMMIT=$(git rev-parse HEAD)
@@ -53,6 +57,7 @@ pipeline {
53 agent { 57 agent {
54 dockerfile { 58 dockerfile {
55 filename 'scripts/ci/Dockerfile.bitbake' 59 filename 'scripts/ci/Dockerfile.bitbake'
60 args '-v /opt/jenkins/bitbake-common:/opt/jenkins/bitbake-common'
56 } 61 }
57 } 62 }
58 steps { 63 steps {