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

git at git.haskell.org git at git.haskell.org
Fri Jun 9 07:24:21 UTC 2017


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

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

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

commit f34254e463b3e94c31b235158fe83a336aada5f4
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.


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

f34254e463b3e94c31b235158fe83a336aada5f4
 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