Compare commits
No commits in common. "a3e56a4e26cbcb9c8d0ba4963f6e4f21f0159e00" and "1db11c1178e9bd8d061abe0af54356418c01e913" have entirely different histories.
a3e56a4e26
...
1db11c1178
2 changed files with 20 additions and 42 deletions
|
@ -1,22 +0,0 @@
|
||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
repo: git.dreamfall.space/${CI_REPO_OWNER}/partybot
|
|
||||||
registry: git.dreamfall.space
|
|
||||||
tag: latest
|
|
||||||
username: ${CI_REPO_OWNER}
|
|
||||||
password:
|
|
||||||
from_secret: git_token
|
|
||||||
|
|
||||||
notify:
|
|
||||||
image: deblan/woodpecker-email
|
|
||||||
settings:
|
|
||||||
from: woodpecker@clacks.network
|
|
||||||
host: smtp.migadu.com
|
|
||||||
username:
|
|
||||||
from_secret: smtp_user
|
|
||||||
password:
|
|
||||||
from_secret: smtp_pass
|
|
||||||
recipients:
|
|
||||||
- morgan@clacks.network
|
|
40
Jenkinsfile
vendored
40
Jenkinsfile
vendored
|
@ -10,7 +10,7 @@ pipeline {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
agent { label 'docker-build' }
|
agent { label 'docker-build' }
|
||||||
steps {
|
steps {
|
||||||
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
script {
|
script {
|
||||||
|
@ -20,22 +20,22 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// post {
|
post {
|
||||||
// success {
|
success {
|
||||||
// mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
stage('Build snap packages') {
|
stage('Build snap packages') {
|
||||||
when { expression { false == true } }
|
// when { expression { false == true } }
|
||||||
parallel {
|
parallel {
|
||||||
stage('Build snap for ARM64') {
|
stage('Build snap for ARM64') {
|
||||||
agent { label "snap-arm64" }
|
agent { label "snap-arm64" }
|
||||||
steps {
|
steps {
|
||||||
// mattermostSend "ARM64 Snap build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "ARM64 Snap build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
sh "snapcraft clean"
|
sh "snapcraft clean"
|
||||||
|
@ -43,19 +43,19 @@ pipeline {
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
// mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "good", message: "ARM64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
archiveArtifacts artifacts: '*.snap'
|
archiveArtifacts artifacts: '*.snap'
|
||||||
sh "snapcraft upload --release=edge *.snap"
|
sh "snapcraft upload --release=edge *.snap"
|
||||||
}
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "ARM64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "danger", message: "ARM64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build snap for AMD64') {
|
stage('Build snap for AMD64') {
|
||||||
agent { label "snap-amd64" }
|
agent { label "snap-amd64" }
|
||||||
steps {
|
steps {
|
||||||
// mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "AMD64 Snap build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
sh "snapcraft clean"
|
sh "snapcraft clean"
|
||||||
|
@ -63,13 +63,13 @@ pipeline {
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
// mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "good", message: "AMD64 Snap build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
archiveArtifacts artifacts: '*.snap'
|
archiveArtifacts artifacts: '*.snap'
|
||||||
sh "snapcraft upload --release=edge *.snap"
|
sh "snapcraft upload --release=edge *.snap"
|
||||||
}
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "AMD64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend color: "danger", message: "AMD64 Snap build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue