diff options
Diffstat (limited to 'scripts/ci/Jenkinsfile')
-rw-r--r-- | scripts/ci/Jenkinsfile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/scripts/ci/Jenkinsfile b/scripts/ci/Jenkinsfile new file mode 100644 index 0000000..83bd49c --- /dev/null +++ b/scripts/ci/Jenkinsfile | |||
@@ -0,0 +1,61 @@ | |||
1 | pipeline { | ||
2 | agent none | ||
3 | environment { | ||
4 | TEST_LOCAL_CONF_APPEND = 'scripts/ci/local.conf.append' | ||
5 | TEST_AKTUALIZR_DIR = 'aktualizr' | ||
6 | TEST_AKTUALIZR_BRANCH = 'origin/master' | ||
7 | } | ||
8 | stages { | ||
9 | stage('checkout') { | ||
10 | agent { | ||
11 | label 'bitbake' | ||
12 | } | ||
13 | steps { | ||
14 | dir('aktualizr') { | ||
15 | checkout([$class: 'GitSCM', | ||
16 | userRemoteConfigs: [[url: 'https://github.com/advancedtelematic/aktualizr']], | ||
17 | branches: [[name: '*/master']], | ||
18 | changelog: true, | ||
19 | poll: true, | ||
20 | ]) | ||
21 | } | ||
22 | |||
23 | checkout([$class: 'RepoScm', | ||
24 | manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo', | ||
25 | manifestBranch: null, | ||
26 | manifestFile: 'master.xml', | ||
27 | manifestGroup: null, | ||
28 | mirrorDir: null, | ||
29 | jobs: 0, | ||
30 | depth: 0, | ||
31 | localManifest: null, | ||
32 | destinationDir: 'updater-repo', | ||
33 | repoUrl: null, | ||
34 | currentBranch: false, | ||
35 | resetFirst: true, | ||
36 | quiet: false, | ||
37 | trace: false, | ||
38 | showAllChanges: false, | ||
39 | ]) | ||
40 | |||
41 | // override meta-updater commit with currently tested branch | ||
42 | sh ''' | ||
43 | META_UPDATER_COMMIT=$(git rev-parse HEAD) | ||
44 | cd updater-repo/meta-updater | ||
45 | git checkout $META_UPDATER_COMMIT | ||
46 | ''' | ||
47 | } | ||
48 | } | ||
49 | stage('build-core-image-minimal') { | ||
50 | agent { | ||
51 | label 'bitbake' | ||
52 | } | ||
53 | steps { | ||
54 | sh 'scripts/ci/configure.sh' | ||
55 | |||
56 | sh 'scripts/ci/build.sh core-image-minimal' | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | // vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: | ||