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"""
|
sh """cat projectPaths | xargs go vet"""
|
||||||
|
|
||||||
echo 'Linting'
|
echo 'Linting'
|
||||||
// -set_exit_status to cause errors
|
sh """cat projectPaths | xargs golint -set_exit_status"""
|
||||||
sh """cat projectPaths | xargs golint"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,4 +107,4 @@ def notifyBuild(String buildStatus = 'STARTED') {
|
||||||
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']],
|
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']],
|
||||||
from: 'dan@openprivacy.ca'
|
from: 'dan@openprivacy.ca'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,7 @@ pipeline {
|
||||||
sh """cat projectPaths | xargs go vet"""
|
sh """cat projectPaths | xargs go vet"""
|
||||||
|
|
||||||
echo 'Linting'
|
echo 'Linting'
|
||||||
// -set_exit_status to cause errors
|
sh """cat projectPaths | xargs golint -set_exit_status"""
|
||||||
sh """cat projectPaths | xargs golint"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue