first attempt make test from within golang alpine container

This commit is contained in:
Michael Shaw
2022-10-04 16:42:58 -04:00
parent fa5ce136fb
commit c7a0d299d1
Vendored
+14
View File
@@ -14,8 +14,22 @@ pipeline {
}
}
stage('Test') {
agent {
docker {
image 'golang:1.18-alpine'
}
}
tools {
go 'go-1.18'
}
environment {
GO111MODULE = 'on'
CGO_ENABLED = 0
GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
}
steps {
echo 'Testing ...'
sh 'make test'
}
}
stage('Packaging') {