Fix: clean workspace before clone

This commit is contained in:
wfz
2026-05-06 17:44:32 +08:00
parent 5e56f413d5
commit ac7cc7fe75

1
Jenkinsfile vendored
View File

@@ -10,6 +10,7 @@ pipeline {
stage('Checkout') { stage('Checkout') {
steps { steps {
echo 'Checkout code from Gitea...' echo 'Checkout code from Gitea...'
sh 'rm -rf *'
sh 'git clone ${GITEA_REPO} .' sh 'git clone ${GITEA_REPO} .'
sh 'git checkout ${BRANCH_NAME}' sh 'git checkout ${BRANCH_NAME}'
} }