Simplify: use SCM checkout, remove manual clone

This commit is contained in:
wfz
2026-05-06 17:46:49 +08:00
parent ac7cc7fe75
commit e8f203f66a

10
Jenkinsfile vendored
View File

@@ -3,19 +3,9 @@ pipeline {
environment { environment {
CLOUDFLARE_API_TOKEN = 'cfut_cYi1Do6CdWPGD8ecrJ6ZtnOMcjU2GI6LdEToDEct71ff4034' CLOUDFLARE_API_TOKEN = 'cfut_cYi1Do6CdWPGD8ecrJ6ZtnOMcjU2GI6LdEToDEct71ff4034'
GITEA_REPO = 'https://gitea.wufangzhen.com/wfz/home.git'
} }
stages { stages {
stage('Checkout') {
steps {
echo 'Checkout code from Gitea...'
sh 'rm -rf *'
sh 'git clone ${GITEA_REPO} .'
sh 'git checkout ${BRANCH_NAME}'
}
}
stage('Install') { stage('Install') {
steps { steps {
echo 'Installing dependencies...' echo 'Installing dependencies...'