[commit: ghc] wip/jenkins: Trim whitespace from git output (3a51668)

git at git.haskell.org git at git.haskell.org
Thu Jul 27 20:52:01 UTC 2017


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

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

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

commit 3a51668d4ee91f24f4f6ef4af862239a4a3ec2b4
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jun 4 11:00:28 2017 -0400

    Trim whitespace from git output


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

3a51668d4ee91f24f4f6ef4af862239a4a3ec2b4
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 410a86d..b709774 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -279,7 +279,7 @@ def testGhc(params) {
 }
 
 def resolveCommitSha(String ref) {
-  return sh(script: "git rev-parse ${ref}", returnStdout: true)
+  return sh(script: "git rev-parse ${ref}", returnStdout: true).trim()
 }
 
 // Push update to ghc.readthedocs.org.



More information about the ghc-commits mailing list