Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 99083f1

Browse files
committed
Copy Jenkinsfile from upstream/master to fix the build.
1 parent e6cad58 commit 99083f1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Jenkinsfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ err = null
1313

1414
// initialize source codes
1515
def 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

3132
def 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() {
5052
def 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'

0 commit comments

Comments
 (0)