diff options
-rw-r--r-- | Jenkinsfile | 48 | ||||
-rw-r--r-- | debian/changelog | 6 |
2 files changed, 44 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') { diff --git a/debian/changelog b/debian/changelog index ba62c92..5449352 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-bluetooth (0.0.7+ubports1) xenial; urgency=medium + + * Update Jenkinsfile for xenial + + -- Dan Chapman <dan@ubports.com> Thu, 11 Jan 2018 10:38:02 +0000 + indicator-bluetooth (0.0.7+ubports) vivid; urgency=medium * Imported to UBports |