// Install required packages
sh """
apt-get install -y \
+ apt-utils \
build-essential \
crossbuild-essential-${env.ARCH} \
devscripts \
}
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 """
+ version="\$(dpkg-parsechangelog --show-field Version | sed "s/-[^-]*\$//")";
tar \
--create \
--verbose \
--xz \
- --file="../pakfire_${env.VERSION}.orig.tar.xz" \
- --transform="s|^|pakfire-${env.VERSION}/|"
+ --file="../pakfire_\$version.orig.tar.xz" \
+ --transform="s|^|pakfire-\$version/|" \
*
"""
}
// Upload everything again
- archiveArtifacts artifacts: "dists/**/*, pool/**/*",
- name: "debian-repo"
+ archiveArtifacts artifacts: "dists/**/*, pool/**/*"
// XXX This needs to be published on a mirror server somewhere
}