summaryrefslogtreecommitdiffstats
path: root/scripts/ci/Jenkinsfile.bleeding
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/Jenkinsfile.bleeding')
-rw-r--r--scripts/ci/Jenkinsfile.bleeding74
1 files changed, 74 insertions, 0 deletions
diff --git a/scripts/ci/Jenkinsfile.bleeding b/scripts/ci/Jenkinsfile.bleeding
new file mode 100644
index 0000000..6d0f1e7
--- /dev/null
+++ b/scripts/ci/Jenkinsfile.bleeding
@@ -0,0 +1,74 @@
1// This CI setup checks out aktualizr, meta-updater and updater-repo and builds
2// master branches whenever a change is pushed to any of these
3
4pipeline {
5 agent none
6 environment {
7 TEST_AKTUALIZR_REMOTE = 'aktualizr'
8 TEST_AKTUALIZR_DIR = 'aktualizr'
9 TEST_AKTUALIZR_BRANCH = 'master'
10 TEST_BITBAKE_COMMON_DIR = "/opt/jenkins/bitbake-common"
11 }
12 stages {
13 stage('checkout') {
14 agent any
15 steps {
16 checkout([$class: 'GitSCM',
17 userRemoteConfigs: [
18 [url: 'https://github.com/advancedtelematic/aktualizr', name: 'aktualizr']
19 ],
20 branches: [[name: 'refs/heads/master']],
21 extensions: [
22 [$class: 'DisableRemotePoll'],
23 [$class: 'PruneStaleBranch'],
24 [$class: 'RelativeTargetDirectory',
25 relativeTargetDir: 'aktualizr'
26 ]
27 ],
28 ])
29
30 checkout([$class: 'RepoScm',
31 manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo',
32 manifestBranch: null,
33 manifestFile: 'master.xml',
34 manifestGroup: null,
35 mirrorDir: null,
36 jobs: 0,
37 depth: 0,
38 localManifest: null,
39 destinationDir: 'updater-repo',
40 repoUrl: null,
41 currentBranch: false,
42 resetFirst: true,
43 quiet: false,
44 trace: false,
45 showAllChanges: false,
46 ])
47
48 // ignore bitbake build directories in docker
49 sh 'echo \'build*\' > .dockerignore'
50
51 // override meta-updater commit with currently tested branch
52 sh '''
53 META_UPDATER_COMMIT=$(git rev-parse HEAD)
54 cd updater-repo/meta-updater
55 git checkout $META_UPDATER_COMMIT
56 '''
57 }
58 }
59 stage('build-core-image-minimal') {
60 agent {
61 dockerfile {
62 filename 'scripts/ci/Dockerfile.bitbake'
63 args '-v /opt/jenkins/bitbake-common:/opt/jenkins/bitbake-common'
64 }
65 }
66 steps {
67 sh 'scripts/ci/configure.sh'
68
69 sh 'scripts/ci/build.sh core-image-minimal'
70 }
71 }
72 }
73}
74// vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: