Skip to content

Commit

Permalink
fix(website): Add cleanup steps for the website
Browse files Browse the repository at this point in the history
  • Loading branch information
hutcheb committed Nov 19, 2024
1 parent d09c49a commit a5af4c5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -193,7 +206,6 @@ pipeline {
sh './mvnw -P${JENKINS_PROFILE},skip-prerequisite-check site -X -pl . -pl website'
}
}

stage('Stage site') {
when {
branch 'develop'
Expand All @@ -215,7 +227,6 @@ pipeline {
//stash includes: 'target/staging/**/*', name: 'plc4x-site'
}
}

stage('Deploy site') {
when {
branch 'develop'
Expand Down

0 comments on commit a5af4c5

Please sign in to comment.