[commit: ghc] wip/jenkins: A bit more paranoia around directory deletion (3ce33d3)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 16:43:55 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/3ce33d36834ffecaafb9d09676c922ddbfbcc1cd/ghc

>---------------------------------------------------------------

commit 3ce33d36834ffecaafb9d09676c922ddbfbcc1cd
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jun 4 10:51:43 2017 -0400

    A bit more paranoia around directory deletion
    
    It seems that the finally block never executes in some cases. Arg.


>---------------------------------------------------------------

3ce33d36834ffecaafb9d09676c922ddbfbcc1cd
 Jenkinsfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6615265..b7c9db5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -196,7 +196,10 @@ def getMakeValue(String makeCmd, String value) {
 }
 
 def withTempDir(String name, Closure f) {
-  sh "mkdir ${name}"
+  sh """
+     rm -Rf ${name} || true
+     mkdir ${name}
+     """
   dir(name) {
     try {
       f()



More information about the ghc-commits mailing list