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

Commit

Permalink
Delete workspace before build. (#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 indhub committed Oct 10, 2017
1 parent b6b8da0 commit 573a010
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 573a010

Please sign in to comment.