]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Create Sources for Debian repositories
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Nov 2024 15:29:39 +0000 (15:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Dec 2024 16:55:23 +0000 (16:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 7f973e2a73d9f46b1e242cbb9c4987099199bc3d..41adab70c22866e18cb5799241575c7e82c03f5d 100644 (file)
@@ -326,7 +326,8 @@ pipeline {
                                                                        // Create a repository and generate Packages
                                                                        sh "mkdir -pv \
                                                                                dists/${DISTRO}/main/binary-${ARCH} \
-                                                                               pool/${DISTRO}/main/${ARCH}"
+                                                                               pool/${DISTRO}/main/${ARCH} \
+                                                                               pool/${DISTRO}/main/source"
 
                                                                        // Copy all packages
                                                                        sh "cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH}"
@@ -335,6 +336,10 @@ pipeline {
                                                                        sh "dpkg-scanpackages pool/${DISTRO}/main/${ARCH} \
                                                                                | gzip -9 > dists/${DISTRO}/main/binary-${ARCH}/Packages.gz"
 
+                                                                       // Generate Sources.gz
+                                                                       sh "dpkg-scansources pool/${DISTRO}/main/${ARCH} \
+                                                                               | gzip -9 > dists/${DISTRO}/main/source/Sources.gz"
+
                                                                        // Stash the packages
                                                                        stash includes: "dists/**/*, pool/**/*",
                                                                                name: "${DISTRO}-${ARCH}"