[commit: ghc] wip/jenkins: More debugging (17ec01e)

git at git.haskell.org git at git.haskell.org
Sat Jun 3 23:58:39 UTC 2017


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

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

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

commit 17ec01e0b0de505d908a2e97c2866e85b63f6324
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Jun 3 17:02:01 2017 -0400

    More debugging


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

17ec01e0b0de505d908a2e97c2866e85b63f6324
 Jenkinsfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 151bc7b..b40186c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -162,8 +162,9 @@ def buildGhc(params) {
     json.put('dirName', getMakeValue(makeCmd, 'BIN_DIST_NAME'))
     json.put('ghcVersion', getMakeValue(makeCmd, 'ProjectVersion'))
     json.put('targetPlatform', getMakeValue(makeCmd, 'TARGETPLATFORM'))
+    echo "${json}"
+    echo json.toString()
     writeJSON(file: 'bindist.json', json: json)
-    sh 'cat bindist.json'
     // Write a file so we can easily file the tarball and bindist directory later
     stash(name: "bindist-${targetTriple}", includes: "bindist.json,${tarName}")
     archiveArtifacts "${tarName}"
@@ -177,9 +178,9 @@ def getMakeValue(String makeCmd, String value) {
 def withGhcBinDist(String targetTriple, Closure f) {
   unstash "bindist-${targetTriple}"
   def metadata = readJSON file: "bindist.json"
-  sh 'cat bindist.json'
+  echo "${metadata}"
   sh "tar -xf ${metadata.tarName}"
-  dir("${metadata.bindistName}") {
+  dir("${metadata.dirName}") {
     try {
       f
     } finally {



More information about the ghc-commits mailing list