aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorMarius Gripsgard <mariogrip@ubuntu.com>2017-07-23 17:24:48 +0200
committerMarius Gripsgard <mariogrip@ubuntu.com>2017-07-23 17:24:48 +0200
commitec3f329b3e0473cc76b6652acb0a1596ee5ac12f (patch)
tree0045dfbc9461e6d96f3578f3cd90187f0decff1f /Jenkinsfile
parentbebb1871a204ee92ac4ebc67cf7fddc184a0b012 (diff)
downloadayatana-indicator-bluetooth-ec3f329b3e0473cc76b6652acb0a1596ee5ac12f.tar.gz
ayatana-indicator-bluetooth-ec3f329b3e0473cc76b6652acb0a1596ee5ac12f.tar.bz2
ayatana-indicator-bluetooth-ec3f329b3e0473cc76b6652acb0a1596ee5ac12f.zip
Imported to UBports
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile38
1 files changed, 38 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..1401405
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,38 @@
+pipeline {
+ agent any
+ stages {
+ stage('Build source') {
+ steps {
+ sh '/usr/bin/build-source.sh'
+ stash(name: 'source', includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt')
+ cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true)
+ }
+ }
+ stage('Build binary - armhf') {
+ steps {
+ node(label: 'xenial-arm64') {
+ unstash 'source'
+ sh '''export architecture="armhf"
+export BUILD_ONLY=true
+/usr/bin/build-and-provide-package'''
+ stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build')
+ cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true)
+ }
+
+ }
+ }
+ stage('Results') {
+ steps {
+ unstash 'build'
+ archiveArtifacts(artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo', fingerprint: true, onlyIfSuccessful: true)
+ sh '''export architecture="armhf"
+/usr/bin/build-repo.sh'''
+ }
+ }
+ stage('Cleanup') {
+ steps {
+ cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true)
+ }
+ }
+ }
+}