From: Michael Tremer Date: Fri, 22 Nov 2024 11:32:49 +0000 (+0000) Subject: jenkins: Run Docker containers with privileges X-Git-Tag: 0.9.30~786 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aca51079dbfcf887cd4f947d0d980380a40d6c7e;p=pakfire.git jenkins: Run Docker containers with privileges Signed-off-by: Michael Tremer --- diff --git a/Jenkinsfile b/Jenkinsfile index d4c09826c..483dc8fe7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" }