Morgan McMillian
db7bf3b8f2
Some checks failed
dreamfall/pnut-bridge/pipeline/head There was a failure building this commit
29 lines
902 B
Groovy
29 lines
902 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'golang:latest'
|
|
label 'docker-build'
|
|
}
|
|
}
|
|
environment {
|
|
XDG_CACHE_HOME = '/tmp/.cache'
|
|
CGO_ENABLED = 0
|
|
}
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
mattermostSend "Build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
sh 'go build'
|
|
}
|
|
post {
|
|
success {
|
|
mattermostSend color: "good" message: "Build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
archiveArtifacts artifacts: 'pnut-bridge'
|
|
}
|
|
failure {
|
|
mattermostSend color: "danger" message: "Build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|