Morgan McMillian
53b45ba214
All checks were successful
dreamfall/pnut-bridge/pipeline/head This commit looks good
29 lines
854 B
Groovy
29 lines
854 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 "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>)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|