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

git at git.haskell.org git at git.haskell.org
Sat Jun 17 13:53:08 UTC 2017


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

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

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

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

    Trim whitespace from git output


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

90fcb1e8f1fd0664b62b915b4fa5a1b3112882ee
 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