From 81fc50341a2d9de4a39fac7e9d713c28f5150987 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 15 Jun 2018 18:37:30 -0700 Subject: [PATCH] lint now causes fail when not passing --- cwtch.node.jenkinsfile | 5 ++--- cwtch.pipeline.jenkinsfile | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cwtch.node.jenkinsfile b/cwtch.node.jenkinsfile index df228c8..a40f2b0 100644 --- a/cwtch.node.jenkinsfile +++ b/cwtch.node.jenkinsfile @@ -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' ) -} \ No newline at end of file +} diff --git a/cwtch.pipeline.jenkinsfile b/cwtch.pipeline.jenkinsfile index 2c4b3b3..ffef3a1 100644 --- a/cwtch.pipeline.jenkinsfile +++ b/cwtch.pipeline.jenkinsfile @@ -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""" } } }