removing golint
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:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -5,17 +5,9 @@ pipeline {
|
||||
}
|
||||
environment {
|
||||
GO115MODULE = 'on'
|
||||
GOPATH = "${WORKSPACE}"
|
||||
CGO_ENABLED = 0
|
||||
}
|
||||
stages {
|
||||
stage('Pre Test') {
|
||||
steps {
|
||||
echo 'Installing dependencies'
|
||||
sh 'go version'
|
||||
sh 'go get -u golang.org/x/lint/golint'
|
||||
}
|
||||
}
|
||||
stage('Compile') {
|
||||
steps {
|
||||
sh 'go build'
|
||||
@@ -23,14 +15,6 @@ pipeline {
|
||||
}
|
||||
stage('Test') {
|
||||
parallel{
|
||||
stage('golint') {
|
||||
steps {
|
||||
withEnv(["PATH+GO=${GOPATH}/bin"]) {
|
||||
echo 'Running linting'
|
||||
sh 'golint .'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('go vet') {
|
||||
steps {
|
||||
echo 'Running vetting'
|
||||
|
||||
Reference in New Issue
Block a user