From aca51079dbfcf887cd4f947d0d980380a40d6c7e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 22 Nov 2024 11:32:49 +0000 Subject: [PATCH] jenkins: Run Docker containers with privileges Signed-off-by: Michael Tremer --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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" } -- 2.39.5