]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Run Docker containers with privileges
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Nov 2024 11:32:49 +0000 (11:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Nov 2024 11:36:49 +0000 (11:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index d4c09826c8a56e45d2a0f7e72d3784566f849a99..483dc8fe7ed2e0f6cc804e7b9340ec8b14bb5fed 100644 (file)
@@ -13,7 +13,7 @@ pipeline {
                                                        image "debian:trixie"
 
                                                        // Run as root inside the containers to install dependencies
-                                                       args "-u root"
+                                                       args "--privileged -u root"
 
                                                        customWorkspace "${JOB_NAME}/${BUILD_ID}/clang-static-analyzer"
                                                }
@@ -58,7 +58,7 @@ pipeline {
                                                        image "debian:trixie"
 
                                                        // Run as root inside the containers to install dependencies
-                                                       args "-u root"
+                                                       args "--privileged -u root"
 
                                                        customWorkspace "${JOB_NAME}/${BUILD_ID}/lcov"
                                                }
@@ -157,7 +157,7 @@ pipeline {
                                                image "${DISTRO}"
 
                                                // Run as root inside the containers to install dependencies
-                                               args "-u root"
+                                               args "--privileged -u root"
 
                                                customWorkspace "${JOB_NAME}/${BUILD_ID}/${env.DISTRO.replace(":", "-")}/${env.COMPILER}"
                                        }
@@ -260,7 +260,7 @@ pipeline {
                                                                image "${IMAGE}"
 
                                                                // Run as root inside the containers to install dependencies
-                                                               args "-u root"
+                                                               args "--privileged -u root"
 
                                                                customWorkspace "${JOB_NAME}/${BUILD_ID}/${IMAGE.replace(":", "-")}/${ARCH}"
                                                        }
@@ -352,7 +352,7 @@ pipeline {
                                                        image "debian:trixie"
 
                                                        // Run as root inside the containers to install dependencies
-                                                       args "-u root"
+                                                       args "--privileged -u root"
 
                                                        customWorkspace "${JOB_NAME}/${BUILD_ID}/update-debian-repo"
                                                }