go-http-peering/Jenkinsfile

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-05 14:40:36 +02:00
@Library('cadoles') _
2022-09-05 10:56:41 +02:00
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
dir 'misc/ci'
}
}
stages {
2022-09-05 12:40:58 +02:00
stage('Lint') {
steps {
script {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh 'make lint'
}
}
}
}
stage('Test') {
steps {
script {
sh 'make test'
}
}
}
2022-09-05 10:56:41 +02:00
stage('Release') {
steps {
script {
2022-09-05 12:40:58 +02:00
sh 'make tidy'
2022-09-12 17:47:09 +02:00
sh 'ARCH_TARGETS="amd64 arm arm64 mipsle" make release'
2022-09-05 10:56:41 +02:00
def attachments = sh(returnStdout: true, script: 'find release -maxdepth 1 -type f').split(' ')
gitea.release('forge-jenkins', 'Cadoles', 'go-http-peering', [
'attachments': attachments
])
}
}
}
}
post {
always {
script {
cleanWs()
}
}
}
}