]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Remove name
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Dec 2024 19:04:35 +0000 (19:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Dec 2024 17:03:49 +0000 (17:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 6d6bfef9b67d10ca59e919c1bbfeee4baed95571..b5827429f1ae92e86ac0920bb9a4658cad1153b4 100644 (file)
@@ -276,6 +276,7 @@ pipeline {
                                                                        // Install required packages
                                                                        sh """
                                                                                apt-get install -y \
+                                                                                       apt-utils \
                                                                                        build-essential \
                                                                                        crossbuild-essential-${env.ARCH} \
                                                                                        devscripts \
@@ -303,23 +304,15 @@ pipeline {
                                                                }
 
                                                                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/|" \
                                                                                        *
                                                                        """
 
@@ -434,8 +427,7 @@ pipeline {
                                                }
 
                                                // 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
                                        }