From 7e7461e42a8cbdb470d531276ad59df46e1fd4e1 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Sun, 6 Aug 2017 14:46:56 -0500 Subject: [PATCH] HBASE-18527 Update nightly job to account for changes in jenkins plugins. - Stop presuming job will be configured with checkout into a 'component' dir - Disable autocheckout - Specify checkout within 'component' dir - leave the workspace around on pipeline failure so we can browse it. --- dev-support/Jenkinsfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 94d8c3fc29e..1f01a4766de 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -27,6 +27,7 @@ pipeline { buildDiscarder(logRotator(numToKeepStr: '30')) timeout (time: 6, unit: 'HOURS') timestamps() + skipDefaultCheckout() } environment { TOOLS = "${env.WORKSPACE}/tools" @@ -59,6 +60,13 @@ pipeline { booleanParam(name: 'DEBUG', defaultValue: false, description: 'Produce a lot more meta-information.') } stages { + stage ('scm checkout') { + steps { + dir('component') { + checkout scm + } + } + } stage ('yetus install') { steps { sh '''#!/usr/bin/env bash @@ -298,9 +306,4 @@ END } } } - post { - failure { - deleteDir() - } - } }