Morgan McMillian
41725fa57e
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit
54 lines
2.4 KiB
Groovy
54 lines
2.4 KiB
Groovy
pipeline {
|
|
agent none
|
|
environment {
|
|
SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials')
|
|
}
|
|
stages {
|
|
stage('Build snap packages') {
|
|
parallel {
|
|
stage('Build snap for ARM64') {
|
|
agent { label "snap-arm64" }
|
|
steps {
|
|
mattermostSend "ARM64 Snap build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
sh "rm *.snap || true"
|
|
sh "snapcraft"
|
|
}
|
|
post {
|
|
success {
|
|
mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
archiveArtifacts artifacts: '*.snap'
|
|
// sh "snapcraft upload --release=edge *.snap"
|
|
}
|
|
failure {
|
|
mattermostSend color: "danger", message: "ARM64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
}
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
stage('Build snap for AMD64') {
|
|
agent { label "snap-amd64" }
|
|
steps {
|
|
mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
sh "rm *.snap || true"
|
|
sh "snapcraft"
|
|
}
|
|
post {
|
|
success {
|
|
mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
archiveArtifacts artifacts: '*.snap'
|
|
// sh "snapcraft upload --release=edge *.snap"
|
|
}
|
|
failure {
|
|
mattermostSend color: "danger", message: "AMD64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
}
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|