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

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


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

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

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

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

    Trim whitespace from git output


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

af80cfb185e61cefd9cd6347ae04bc83802692b0
 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