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