From 807c2b799bc6d8d7185a25ff076f174e7998ec64 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Thu, 26 Apr 2018 12:00:08 +0200 Subject: [PATCH] coding style --- src/eo/Utils.groovy | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy index 35884eb..bbd0059 100644 --- a/src/eo/Utils.groovy +++ b/src/eo/Utils.groovy @@ -10,24 +10,28 @@ def mail_notify(currentBuild, env, email) { currentBuild.result = 'SUCCESS' } if (env.BRANCH_NAME == 'master') { - step( - [$class: 'Mailer', notifyEveryUnstableBuild: true, - recipients: email, sendToIndividuals: true] - ) + step([ + $class: 'Mailer', notifyEveryUnstableBuild: true, + recipients: email, sendToIndividuals: true + ]) } else { step([ $class: 'Mailer', notifyEveryUnstableBuild: true, - recipients: emailextrecipients([ - [$class: 'CulpritsRecipientProvider'], - [$class: 'RequesterRecipientProvider']])]) + recipients: emailextrecipients([ + [$class: 'CulpritsRecipientProvider'], + [$class: 'RequesterRecipientProvider'] + ]) + ]) } } def publish_coverage(report_pattern) { - CoberturaPublisher autoUpdateHealth: false, autoUpdateStability: false, - coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false, - maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false + step([ + $class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, + coberturaReportFile: report_pattern, failUnhealthy: false, failUnstable: false, + maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false + ]) }