Simplify: use SCM checkout, remove manual clone
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -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...'
|
||||||
|
|||||||
Reference in New Issue
Block a user