Simplify: use SCM checkout, remove manual clone
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -3,19 +3,9 @@ pipeline {
|
||||
|
||||
environment {
|
||||
CLOUDFLARE_API_TOKEN = 'cfut_cYi1Do6CdWPGD8ecrJ6ZtnOMcjU2GI6LdEToDEct71ff4034'
|
||||
GITEA_REPO = 'https://gitea.wufangzhen.com/wfz/home.git'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
echo 'Checkout code from Gitea...'
|
||||
sh 'rm -rf *'
|
||||
sh 'git clone ${GITEA_REPO} .'
|
||||
sh 'git checkout ${BRANCH_NAME}'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Install') {
|
||||
steps {
|
||||
echo 'Installing dependencies...'
|
||||
|
||||
Reference in New Issue
Block a user