You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/08/13 16:16:54 UTC
[sling-tooling-jenkins] 01/01: SLING-11540 always clear workspace directory prior checkout
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/clear-workspace
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
commit e71e7ae69de63f990d120090e15ff4d5e17accbe
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Aug 13 18:16:47 2022 +0200
SLING-11540 always clear workspace directory prior checkout
---
vars/slingOsgiBundleBuild.groovy | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index bda30b3..d43e110 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -87,6 +87,7 @@ def call(Map params = [:]) {
if ( stepsMap.size() > 1 ) {
node(globalConfig.mainNodeLabel) {
stage("Sanity Check") {
+ deleteDir() // first clear workspace
checkout scm
withMaven(maven: globalConfig.mvnVersion,
jdk: jenkinsJdkLabel(referenceJdkVersion, globalConfig),
@@ -182,6 +183,7 @@ def defineStage(def globalConfig, def jobConfig, def jdkVersion, boolean isRefer
return {
node(branchConfig.nodeLabel ?: globalConfig.mainNodeLabel) {
dir(jenkinsJdkLabel) { // isolate parallel builds on same node
+ deleteDir() // first clear workspace
timeout(time: 30, unit: 'MINUTES') {
checkout scm
stage("Maven Build (Java ${jdkVersion}, ${goal})") {