From 35eba84dc6096debff72449fd9bda7886c2bd959 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Thu, 17 Nov 2016 13:53:09 -0800 Subject: [PATCH] Updated for latest Pipeline fixes JENKINS-29711 was fixed and stage step now uses curly braces --- Jenkinsfile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 40ec3cd..4209734 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,30 +4,30 @@ properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '10']]]) -stage 'Build' +stage ('Build') { -node { - // Checkout - checkout scm + node { + // Checkout + checkout scm - // install required bundles - sh 'bundle install' + // install required bundles + sh 'bundle install' - // build and run tests with coverage - sh 'bundle exec rake build spec' + // build and run tests with coverage + sh 'bundle exec rake build spec' - // Archive the built artifacts - archive (includes: 'pkg/*.gem') + // Archive the built artifacts + archive (includes: 'pkg/*.gem') - // publish html - // "target:" shouldn't be needed, https://issues.jenkins-ci.org/browse/JENKINS-29711. - publishHTML (target: [ - allowMissing: false, - alwaysLinkToLastBuild: false, - keepAll: true, - reportDir: 'coverage', - reportFiles: 'index.html', - reportName: "RCov Report" - ]) + // publish html + publishHTML ([ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: true, + reportDir: 'coverage', + reportFiles: 'index.html', + reportName: "RCov Report" + ]) + } }