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 {
|
environment {
|
||||||
GO115MODULE = 'on'
|
GO115MODULE = 'on'
|
||||||
|
GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
|
||||||
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Pre Test') {
|
stage('Pre Test') {
|
||||||
@@ -23,8 +25,10 @@ pipeline {
|
|||||||
parallel{
|
parallel{
|
||||||
stage('golint') {
|
stage('golint') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Running linting'
|
withEnv(["PATH+GO=${GOPATH}/bin"]) {
|
||||||
sh 'golint .'
|
echo 'Running linting'
|
||||||
|
sh 'golint .'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('go vet') {
|
stage('go vet') {
|
||||||
|
|||||||
Reference in New Issue
Block a user