2022-11-10 22:30:35 -08:00
|
|
|
pipeline {
|
2022-11-12 21:49:45 -08:00
|
|
|
agent none
|
2022-11-13 06:45:56 -08:00
|
|
|
environment {
|
|
|
|
SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials')
|
|
|
|
}
|
2022-11-10 22:30:35 -08:00
|
|
|
stages {
|
2022-11-12 21:46:30 -08:00
|
|
|
stage('Build snap packages') {
|
|
|
|
parallel {
|
2022-11-13 06:45:56 -08:00
|
|
|
stage('Build snap for ARM64') {
|
2022-11-12 21:46:30 -08:00
|
|
|
agent { label "snap-arm64" }
|
|
|
|
steps { sh "snapcraft" }
|
2022-11-13 06:45:56 -08:00
|
|
|
post {
|
|
|
|
success {
|
|
|
|
sh "snapcraft upload --release=edge *.snap"
|
|
|
|
}
|
|
|
|
}
|
2022-11-12 21:46:30 -08:00
|
|
|
}
|
2022-11-13 06:45:56 -08:00
|
|
|
stage('Build snap for AMD64') {
|
2022-11-12 21:46:30 -08:00
|
|
|
agent { label "snap-amd64" }
|
|
|
|
steps { sh "snapcraft" }
|
2022-11-13 06:45:56 -08:00
|
|
|
post {
|
|
|
|
success {
|
|
|
|
sh "snapcraft upload --release=edge *.snap"
|
|
|
|
}
|
|
|
|
}
|
2022-11-12 21:46:30 -08:00
|
|
|
}
|
2022-11-12 20:49:18 -08:00
|
|
|
}
|
2022-11-10 22:30:35 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|