From: Michael Tremer Date: Sat, 30 Nov 2024 15:50:37 +0000 (+0000) Subject: jenkins: Create a Debian Release file X-Git-Tag: 0.9.30~777 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21b6237f0419642627630e8d807d919a16cac3df;p=pakfire.git jenkins: Create a Debian Release file Signed-off-by: Michael Tremer --- diff --git a/Jenkinsfile b/Jenkinsfile index 41adab70c..9b66263fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -326,8 +326,8 @@ pipeline { // Create a repository and generate Packages sh "mkdir -pv \ dists/${DISTRO}/main/binary-${ARCH} \ - pool/${DISTRO}/main/${ARCH} \ - pool/${DISTRO}/main/source" + dists/${DISTRO}/main/source \ + pool/${DISTRO}/main/${ARCH}" // Copy all packages sh "cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH}" @@ -368,6 +368,29 @@ pipeline { for (arch in ["amd64", "arm64"]) { unstash "${distro}-${arch}" } + + // Create the Release file + sh """ + ( + echo "Origin: Pakfire Repository" + echo "Label: Pakfire Repository" + echo "Suite: stable" + echo "Codename: $distro" + echo "Version: 1.0" + echo "Architectures: amd64 arm64" + echo "Components: main" + echo "Description: Pakfire Jenkins Repository" + echo "Date: $(date -Ru)" + + # MD5 + echo "MD5Sum:" + for arch in amd64 arm64; do + echo -n " \$(md5sum dists/$distro/main/binary-\${arch}/Packages.gz | awk '{ print \$1 }')" + echo -n " \$(stat --format="%s" dists/$distro/main/binary-\${arch}/Packages.gz)" + echo " main/binary-\${arch}/Packages.gz" + done + ) >> dists/${distro}/Release + """ } }