You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/12/11 18:14:49 UTC
[maven] 01/01: Clean workspace before build
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch jenkins-clean-ws
in repository https://gitbox.apache.org/repos/asf/maven.git
commit 37704e5577f9de8ec5ab6edf023014e575ed1e50
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Dec 11 19:14:30 2022 +0100
Clean workspace before build
Old workspace can contain files which can break build
---
Jenkinsfile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 1215dec5f..5e3706931 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,6 +34,8 @@ def osNode = jenkinsEnv.labelForOS(buildOs)
node(jenkinsEnv.nodeSelection(osNode)) {
dir('build') {
stage('Checkout') {
+ // Clean workspace before build
+ cleanWs()
checkout scm
}