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

git at git.haskell.org git at git.haskell.org
Sat Jun 17 13:51:59 UTC 2017


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

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

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

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


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

ba840ee72d781384201f0ff91aa67c26127007e0
 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