]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Split multiple commands into a single step each
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Nov 2024 15:25:13 +0000 (15:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Nov 2024 15:25:13 +0000 (15:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 2074de4cba5ca114d33ccf35b297da1ee164556e..7f973e2a73d9f46b1e242cbb9c4987099199bc3d 100644 (file)
@@ -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/**/*",