adds gopath to jenkinsfile
Some checks failed
gitea-deepak/gogmagog/pipeline/head There was a failure building this commit
Some checks failed
gitea-deepak/gogmagog/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user