Skip to content

Commit

Permalink
fix(ci)_: remove workspace and tmp dir
Browse files Browse the repository at this point in the history
This ensures we do not encounter weird errors like:
```
+ ln -s /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907 /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go
ln: failed to create symbolic link '/home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go': File exists
script returned exit code 1
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Oct 23, 2024
1 parent 0555331 commit 3be8cbe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion _assets/ci/Jenkinsfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ pipeline {
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { sh 'make deep-clean' }
cleanup {
cleanWs()
dir("${env.WORKSPACE}@tmp") { deleteDir() }
}
} // post
} // pipeline
5 changes: 4 additions & 1 deletion _assets/ci/Jenkinsfile.ios
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ pipeline {
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { sh 'make deep-clean' }
cleanup {
cleanWs()
dir("${env.WORKSPACE}@tmp") { deleteDir() }
}
} // post
} // pipeline
5 changes: 4 additions & 1 deletion _assets/ci/Jenkinsfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ pipeline {
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { sh 'make deep-clean' }
cleanup {
cleanWs()
dir("${env.WORKSPACE}@tmp") { deleteDir() }
}
} // post
} // pipeline
6 changes: 3 additions & 3 deletions _assets/ci/Jenkinsfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ pipeline {
}
}
cleanup {
dir(env.TMPDIR) { deleteDir() }
sh "make git-clean"
cleanWs()
dir("${env.WORKSPACE}@tmp") { deleteDir() }
}
} // post
} // pipeline
Expand All @@ -254,4 +254,4 @@ def getDefaultUnitTestCount() { isNightlyJob() ? '20' : '1' }

def getDefaultTimeout() { isNightlyJob() ? 5*60 : 50 }

def getAmountToKeep() { isNightlyJob() ? '14' : isDevelopJob() ? '10' : '5' }
def getAmountToKeep() { isNightlyJob() ? '14' : isDevelopJob() ? '10' : '5' }

0 comments on commit 3be8cbe

Please sign in to comment.