[commit: ghc] wip/jenkins: Fix tarball names (9a1f9a8)
git at git.haskell.org
git at git.haskell.org
Fri Jun 9 07:25:27 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/9a1f9a804005dda224dc82a6558827c1a9607198/ghc
>---------------------------------------------------------------
commit 9a1f9a804005dda224dc82a6558827c1a9607198
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Jun 4 10:34:37 2017 -0400
Fix tarball names
>---------------------------------------------------------------
9a1f9a804005dda224dc82a6558827c1a9607198
Jenkinsfile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 3b31238..d2f39f3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -35,10 +35,11 @@ stage("Build source distribution") {
"""
}
stage("Build tarballs") {
+ def version = getMakeValue('make', 'ProjectVersion')
sh "make sdist"
- sh "mv sdistprep/ghc-*.tar.xz ghc-src.tar.xz"
- sh "mv sdistprep/ghc-*-testsuite.tar.xz ghc-testsuite.tar.xz"
- sh "mv sdistprep/ghc-*-windows-extra-src-*.tar.xz ghc-win32-tarballs.tar.xz"
+ sh "mv sdistprep/ghc-${version}-src.tar.xz ghc-src.tar.xz"
+ sh "mv sdistprep/ghc-${version}-testsuite.tar.xz ghc-testsuite.tar.xz"
+ sh "mv sdistprep/ghc-${version}-windows-extra-src.tar.xz ghc-win32-tarballs.tar.xz"
stash(name: 'source-dist', includes: 'ghc-src.tar.xz,ghc-win32-tarballs.tar.xz')
stash(name: 'testsuite-dist', includes: 'ghc-testsuite.tar.xz')
}
@@ -194,7 +195,7 @@ def buildGhc(params) {
}
def getMakeValue(String makeCmd, String value) {
- return sh(script: "${makeCmd} -s echo VALUE=${value}", returnStdout: true)
+ return sh(script: "${makeCmd} -s echo! VALUE=${value}", returnStdout: true)
}
def withTempDir(String name, Closure f) {
More information about the ghc-commits
mailing list