go-http-peering/Jenkinsfile
William Petit 6257330dd3
Some checks reported warnings
Cadoles/go-http-peering/pipeline/head This commit is unstable
Use jenkins main library version
2022-09-05 14:40:36 +02:00

51 lines
1.1 KiB
Groovy

@Library('cadoles') _
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
dir 'misc/ci'
}
}
stages {
stage('Lint') {
steps {
script {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh 'make lint'
}
}
}
}
stage('Test') {
steps {
script {
sh 'make test'
}
}
}
stage('Release') {
steps {
script {
sh 'make tidy'
sh 'ARCH_TARGETS="amd64 arm arm64" make release'
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()
}
}
}
}