diff options
author | Dan Chapman <dpniel@ubuntu.com> | 2018-01-11 10:38:38 +0000 |
---|---|---|
committer | Dan Chapman <dpniel@ubuntu.com> | 2018-01-11 10:38:38 +0000 |
commit | 5024aafdba098a7c4f481357c206c4cd1437ccf2 (patch) | |
tree | 3c5e83019bfe7de3e59915641cfccaaaef04a943 /Jenkinsfile | |
parent | bcd3785ab39143355b09519ba2d4a20dcb38914a (diff) | |
download | ayatana-indicator-bluetooth-5024aafdba098a7c4f481357c206c4cd1437ccf2.tar.gz ayatana-indicator-bluetooth-5024aafdba098a7c4f481357c206c4cd1437ccf2.tar.bz2 ayatana-indicator-bluetooth-5024aafdba098a7c4f481357c206c4cd1437ccf2.zip |
Update Jenkinsfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 48 |
1 files changed, 38 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 92a6db7..a122443 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,22 +10,50 @@ pipeline { } stage('Build binary - armhf') { steps { - node(label: 'xenial-arm64') { - unstash 'source' - sh '''export architecture="armhf" + parallel( + "Build binary - armhf": { + node(label: 'arm64') { + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + unstash 'source' + sh '''export architecture="armhf" build-binary.sh''' - 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) - } - + stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-armhf') + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + } + + + }, + "Build binary - arm64": { + node(label: 'arm64') { + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + unstash 'source' + sh '''export architecture="arm64" + build-binary.sh''' + stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-arm64') + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + } + }, + "Build binary - amd64": { + node(label: 'amd64') { + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + unstash 'source' + sh '''export architecture="amd64" + build-binary.sh''' + stash(includes: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt', name: 'build-amd64') + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + } + } + ) } } stage('Results') { steps { - unstash 'build' + cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, deleteDirs: true) + unstash 'build-armhf' + unstash 'build-arm64' + unstash 'build-amd64' archiveArtifacts(artifacts: '*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo', fingerprint: true, onlyIfSuccessful: true) - sh '''export architecture="armhf" -/usr/bin/build-repo.sh''' + sh '''/usr/bin/build-repo.sh''' } } stage('Cleanup') { |