This is an automated email from the ASF dual-hosted git repository.
hutcheb pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new a5af4c5c8b fix(website): Add cleanup steps for the website
a5af4c5c8b is described below
commit a5af4c5c8b98d6286c9b820eef9348ae79da015f
Author: hutcheb <[email protected]>
AuthorDate: Wed Nov 20 07:07:31 2024 +0800
fix(website): Add cleanup steps for the website
---
Jenkinsfile | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 94bf5ed67a..4811ff6a50 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -180,7 +180,20 @@ pipeline {
label 'git-websites'
}
}
+ options { skipDefaultCheckout() }
stages {
+ stage('Cleanup') {
+ steps {
+ echo 'Cleaning up the workspace'
+ deleteDir()
+ }
+ }
+ stage('Checkout') {
+ steps {
+ echo 'Checking out branch ' + env.BRANCH_NAME
+ checkout scm
+ }
+ }
stage('Build site') {
when {
branch 'develop'
@@ -193,7 +206,6 @@ pipeline {
sh './mvnw
-P${JENKINS_PROFILE},skip-prerequisite-check site -X -pl . -pl website'
}
}
-
stage('Stage site') {
when {
branch 'develop'
@@ -215,7 +227,6 @@ pipeline {
//stash includes: 'target/staging/**/*', name:
'plc4x-site'
}
}
-
stage('Deploy site') {
when {
branch 'develop'