adds gopath to jenkinsfile
Some checks failed
gitea-deepak/gogmagog/pipeline/head There was a failure building this commit

This commit is contained in:
2020-12-24 22:12:38 -06:00
parent a4094ba801
commit d3c550e97e

8
Jenkinsfile vendored
View File

@@ -5,6 +5,8 @@ pipeline {
}
environment {
GO115MODULE = 'on'
GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
}
stages {
stage('Pre Test') {
@@ -23,8 +25,10 @@ pipeline {
parallel{
stage('golint') {
steps {
echo 'Running linting'
sh 'golint .'
withEnv(["PATH+GO=${GOPATH}/bin"]) {
echo 'Running linting'
sh 'golint .'
}
}
}
stage('go vet') {