This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0b44ddece953cc3bdad9a0cd642b80b9fd3ab82e Author: Otavio R. Piske <angusyo...@gmail.com> AuthorDate: Sun May 26 08:29:30 2024 +0200 (chores) camel-ci: force a clean workspace cleanup before the build Signed-off-by: Otavio R. Piske <angusyo...@gmail.com> --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a5026df7c71..274c32d239b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,6 +35,9 @@ pipeline { logRotator(artifactNumToKeepStr: '5', numToKeepStr: '10') ) disableConcurrentBuilds() + + // This is required if you want to clean before build + skipDefaultCheckout(true) } parameters { @@ -97,7 +100,8 @@ pipeline { expression { params.CLEAN } } steps { - sh 'git clean -fdx' + cleanWs() + checkout scm } } @@ -162,8 +166,6 @@ pipeline { body: '${DEFAULT_CONTENT}', recipientProviders: [[$class: 'DevelopersRecipientProvider']] ) - - cleanWs() } } }