Fix: clean workspace before clone
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -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}'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user