pnut-bridge/Jenkinsfile

30 lines
854 B
Text
Raw Normal View History

2022-11-27 19:20:38 +00:00
pipeline {
agent {
docker {
image 'golang:latest'
label 'docker-build'
}
}
2022-11-27 19:30:02 +00:00
environment {
XDG_CACHE_HOME = '/tmp/.cache'
CGO_ENABLED = 0
2022-11-27 19:30:02 +00:00
}
2022-11-27 19:20:38 +00:00
stages {
stage('build') {
steps {
mattermostSend "Build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
2022-11-27 19:20:38 +00:00
sh 'go build'
}
post {
success {
mattermostSend "Build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
archiveArtifacts artifacts: 'pnut-bridge'
}
failure {
mattermostSend "Build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
2022-11-27 19:20:38 +00:00
}
}
}
}
}