test docker build in jenkins
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit

This commit is contained in:
Morgan McMillian 2022-11-29 17:58:57 -08:00
parent 18c6290d0f
commit 7f51a7c6ef

19
Jenkinsfile vendored
View file

@ -7,14 +7,26 @@ pipeline {
skipDefaultCheckout(true)
}
stages {
stage('Build docker image') {
agent { label 'docker-build' }
steps {
script {
docker.withRegistry('https://git.dreamfall.space', '0e145583-73da-44fa-8117-b8d5352025df') {
def customImage = docker.build('partybot:${env.BUILD_ID}')
customImage.push()
}
}
}
}
stage('Build snap packages') {
when { expression { false == true } }
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>)"
cleanWs()
// sh "rm *.snap || true"
checkout scm
sh "snapcraft clean"
sh "snapcraft"
@ -23,7 +35,7 @@ pipeline {
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"
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>)"
@ -35,7 +47,6 @@ pipeline {
steps {
mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
cleanWs()
// sh "rm *.snap || true"
checkout scm
sh "snapcraft clean"
sh "snapcraft"
@ -44,7 +55,7 @@ pipeline {
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"
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>)"