From: Michael Tremer Date: Sat, 30 Nov 2024 15:25:13 +0000 (+0000) Subject: jenkins: Split multiple commands into a single step each X-Git-Tag: 0.9.30~780 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93ae50d0c949d45c36f78de1292ba976af8f8ae5;p=pakfire.git jenkins: Split multiple commands into a single step each Signed-off-by: Michael Tremer --- diff --git a/Jenkinsfile b/Jenkinsfile index 2074de4cb..7f973e2a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -324,18 +324,16 @@ pipeline { steps { // Create a repository and generate Packages - sh """ - mkdir -pv \ - dists/${DISTRO}/main/binary-${ARCH} \ - pool/${DISTRO}/main/${ARCH} + sh "mkdir -pv \ + dists/${DISTRO}/main/binary-${ARCH} \ + pool/${DISTRO}/main/${ARCH}" - # Copy all packages - cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH} + // Copy all packages + sh "cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH}" - # Generate Packages.gz - dpkg-scanpackages pool/${DISTRO}/main/${ARCH} \ - | gzip -9 > dists/${DISTRO}/main/binary-${ARCH}/Packages.gz - """ + // Generate Packages.gz + sh "dpkg-scanpackages pool/${DISTRO}/main/${ARCH} \ + | gzip -9 > dists/${DISTRO}/main/binary-${ARCH}/Packages.gz" // Stash the packages stash includes: "dists/**/*, pool/**/*",