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"""
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -108,4 +107,4 @@ def notifyBuild(String buildStatus = 'STARTED') {
|
|||
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']],
|
||||
from: 'dan@openprivacy.ca'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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