diff options
Diffstat (limited to 'scripts/ci/Jenkinsfile.bleeding-selftest')
-rw-r--r-- | scripts/ci/Jenkinsfile.bleeding-selftest | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/scripts/ci/Jenkinsfile.bleeding-selftest b/scripts/ci/Jenkinsfile.bleeding-selftest deleted file mode 100644 index 8c2d1de..0000000 --- a/scripts/ci/Jenkinsfile.bleeding-selftest +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
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 | |||
4 | // define these for docker image creation | ||
5 | node { | ||
6 | // might cause some problems: | ||
7 | // https://stackoverflow.com/questions/44805076/setting-build-args-for-dockerfile-agent-using-a-jenkins-declarative-pipeline | ||
8 | JENKINS_UID = sh(returnStdout: true, script: 'id -u').trim() | ||
9 | JENKINS_GID = sh(returnStdout: true, script: 'id -g').trim() | ||
10 | } | ||
11 | |||
12 | pipeline { | ||
13 | agent { | ||
14 | node { label 'bitbake' } | ||
15 | } | ||
16 | environment { | ||
17 | TEST_AKTUALIZR_REMOTE = 'aktualizr' | ||
18 | TEST_AKTUALIZR_DIR = 'aktualizr' | ||
19 | TEST_AKTUALIZR_BRANCH = 'master' | ||
20 | TEST_BITBAKE_COMMON_DIR = "/opt/jenkins/bitbake-common" | ||
21 | } | ||
22 | stages { | ||
23 | stage('checkout') { | ||
24 | steps { | ||
25 | |||
26 | checkout([$class: 'GitSCM', | ||
27 | userRemoteConfigs: [ | ||
28 | [url: 'https://github.com/advancedtelematic/aktualizr', name: 'aktualizr'] | ||
29 | ], | ||
30 | branches: [[name: 'refs/heads/master']], | ||
31 | extensions: [ | ||
32 | [$class: 'DisableRemotePoll'], | ||
33 | [$class: 'PruneStaleBranch'], | ||
34 | [$class: 'RelativeTargetDirectory', | ||
35 | relativeTargetDir: 'aktualizr' | ||
36 | ] | ||
37 | ], | ||
38 | ]) | ||
39 | |||
40 | checkout([$class: 'RepoScm', | ||
41 | manifestRepositoryUrl: 'https://github.com/advancedtelematic/updater-repo', | ||
42 | manifestBranch: null, | ||
43 | manifestFile: 'master.xml', | ||
44 | manifestGroup: null, | ||
45 | mirrorDir: null, | ||
46 | jobs: 0, | ||
47 | depth: 0, | ||
48 | localManifest: null, | ||
49 | destinationDir: 'updater-repo', | ||
50 | repoUrl: null, | ||
51 | currentBranch: false, | ||
52 | resetFirst: true, | ||
53 | quiet: false, | ||
54 | trace: false, | ||
55 | showAllChanges: false, | ||
56 | ]) | ||
57 | |||
58 | // ignore bitbake build directories in docker | ||
59 | sh 'echo \'build*\' > .dockerignore' | ||
60 | |||
61 | // override meta-updater commit with currently tested branch | ||
62 | sh ''' | ||
63 | META_UPDATER_COMMIT=$(git rev-parse HEAD) | ||
64 | cd updater-repo/meta-updater | ||
65 | git checkout $META_UPDATER_COMMIT | ||
66 | ''' | ||
67 | } | ||
68 | } | ||
69 | stage('build-core-image-minimal+oe-selftest') { | ||
70 | agent { | ||
71 | dockerfile { | ||
72 | filename 'scripts/ci/Dockerfile.bitbake' | ||
73 | args '-v /opt/jenkins/bitbake-common:/opt/jenkins/bitbake-common' | ||
74 | additionalBuildArgs "--build-arg uid=${JENKINS_UID} --build-arg gid=${JENKINS_GID}" | ||
75 | reuseNode true | ||
76 | } | ||
77 | } | ||
78 | environment { | ||
79 | TEST_AKTUALIZR_CREDENTIALS = credentials('garage-credentials') | ||
80 | } | ||
81 | steps { | ||
82 | sh 'scripts/ci/configure.sh' | ||
83 | |||
84 | sh 'scripts/ci/build.sh core-image-minimal' | ||
85 | |||
86 | sh 'scripts/ci/oe-selftest.sh' | ||
87 | } | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | // vim: set ft=groovy tabstop=2 shiftwidth=2 expandtab: | ||