This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ err = null
1313
1414// initialize source codes
1515def init_git () {
16+ deleteDir()
1617 retry(5 ) {
1718 try {
1819 timeout(time : 2 , unit : ' MINUTES' ) {
1920 checkout scm
2021 sh ' git submodule update --init'
21- sh ' git clean -d -f'
22+ sh ' git clean -d -f'
2223 }
2324 } catch (exc) {
2425 deleteDir()
@@ -29,12 +30,13 @@ def init_git() {
2930}
3031
3132def init_git_win () {
33+ deleteDir()
3234 retry(5 ) {
3335 try {
3436 timeout(time : 2 , unit : ' MINUTES' ) {
3537 checkout scm
3638 bat ' git submodule update --init'
37- bat ' git clean -d -f'
39+ bat ' git clean -d -f'
3840 }
3941 } catch (exc) {
4042 deleteDir()
@@ -50,10 +52,6 @@ def init_git_win() {
5052def make (docker_type , make_flag ) {
5153 timeout(time : max_time, unit : ' MINUTES' ) {
5254 try {
53- sh " ${ docker_run} ${ docker_type} sudo rm -rf *"
54- sh " ${ docker_run} ${ docker_type} sudo git reset --hard"
55- // sh "${docker_run} ${docker_type} sudo make clean"
56- // sh "${docker_run} ${docker_type} sudo make -C amalgamation/ clean"
5755 sh " ${ docker_run} ${ docker_type} make ${ make_flag} "
5856 } catch (exc) {
5957 echo ' Incremental compilation failed. Fall back to build from scratch'
You can’t perform that action at this time.
0 commit comments