lint now causes fail when not passing

This commit is contained in:
Dan Ballard 2018-06-15 18:37:30 -07:00
parent 6d394c7da5
commit 81fc50341a
2 changed files with 3 additions and 5 deletions

View File

@ -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'
)
}
}

View File

@ -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"""
}
}
}