Skip to content

Commit

Permalink
Delete workspace before build. (apache#8195)
Browse files Browse the repository at this point in the history
* Delete workspace before build.

* Move 'deleteDir' outside the retry.
  • Loading branch information
goswamig authored and mbaijal committed Oct 12, 2017
1 parent 03bc565 commit b810be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ err = null

// initialize source codes
def init_git() {
deleteDir()
retry(5) {
try {
timeout(time: 2, unit: 'MINUTES') {
Expand All @@ -29,6 +30,7 @@ def init_git() {
}

def init_git_win() {
deleteDir()
retry(5) {
try {
timeout(time: 2, unit: 'MINUTES') {
Expand Down

0 comments on commit b810be8

Please sign in to comment.