[commit: ghc] wip/jenkins: Fix tarball names (4012478)
git at git.haskell.org
git at git.haskell.org
Sun Jun 4 14:37:49 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/40124788f8f62eb92a64b3ae59ca6d129f6285ae/ghc
>---------------------------------------------------------------
commit 40124788f8f62eb92a64b3ae59ca6d129f6285ae
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Jun 4 10:34:37 2017 -0400
Fix tarball names
>---------------------------------------------------------------
40124788f8f62eb92a64b3ae59ca6d129f6285ae
Jenkinsfile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 3b31238..b4e6876 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