lint now causes fail when not passing
This commit is contained in:
parent
6d394c7da5
commit
81fc50341a
|
@ -41,8 +41,7 @@ node {
|
|||
sh """cat projectPaths | xargs go vet"""
|
||||
|
||||
echo 'Linting'
|
||||
// -set_exit_status to cause errors
|
||||
sh """cat projectPaths | xargs golint"""
|
||||
sh """cat projectPaths | xargs golint -set_exit_status"""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -57,8 +57,7 @@ pipeline {
|
|||
sh """cat projectPaths | xargs go vet"""
|
||||
|
||||
echo 'Linting'
|
||||
// -set_exit_status to cause errors
|
||||
sh """cat projectPaths | xargs golint"""
|
||||
sh """cat projectPaths | xargs golint -set_exit_status"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue