From: Michael Tremer Date: Tue, 3 Dec 2024 19:00:55 +0000 (+0000) Subject: jenkins: Debian wants a source tarball X-Git-Tag: 0.9.30~770 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa1d3160857542a77e5a9174035bcf007cfa9ed4;p=pakfire.git jenkins: Debian wants a source tarball Signed-off-by: Michael Tremer --- diff --git a/Jenkinsfile b/Jenkinsfile index 044ebbaa6..6d6bfef9b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -298,7 +298,32 @@ pipeline { } stage("Build") { + environment { + VERSION = "" + } + steps { + // Fetch the version + script { + env.VERSION = sh( + script: """ + dpkg-parsechangelog --show-field Version | sed "s/-[^-]*\$//" + """, returnStdout: true + ).trim() + } + + // Create the source tarball from the checked out source + sh """ + tar \ + --create \ + --verbose \ + --xz \ + --file="../pakfire_${env.VERSION}.orig.tar.xz" \ + --transform="s|^|pakfire-${env.VERSION}/|" + * + """ + + // Build the packages sh """ dpkg-buildpackage \ --host-arch ${env.ARCH} \