Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ def init_git() {
// retries as this will increase the amount of requests and worsen the throttling
timeout(time: 15, unit: 'MINUTES') {
checkout scm
sh 'git submodule update --init --recursive'
sh 'git clean -xdff'
sh 'git reset --hard'
sh 'git submodule update --init --recursive'
sh 'git submodule foreach --recursive git clean -ffxd'
sh 'git submodule foreach --recursive git reset --hard'
}
} catch (exc) {
deleteDir()
Expand All @@ -45,8 +48,11 @@ def init_git_win() {
// retries as this will increase the amount of requests and worsen the throttling
timeout(time: 15, unit: 'MINUTES') {
checkout scm
bat 'git submodule update --init --recursive'
bat 'git clean -xdff'
bat 'git reset --hard'
bat 'git submodule update --init --recursive'
bat 'git submodule foreach --recursive git clean -ffxd'
bat 'git submodule foreach --recursive git reset --hard'
}
} catch (exc) {
deleteDir()
Expand Down