diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml index 260c2c274..6ed168c9c 100644 --- a/.ci/jenkins/config/branch.yaml +++ b/.ci/jenkins/config/branch.yaml @@ -109,8 +109,8 @@ jenkins: # At some point, this image will need to be changed when a release branch is created # but we need to make sure the image exists first ... simple tag before setting up the branch ? # See https://github.com/kiegroup/kie-issues/issues/551 - image: quay.io/kiegroup/kogito-ci-build:19a0b303bc64f473a01f5fa5bacde822f10b4946 # last main-latest based on ubi - args: -v /var/run/docker.sock:/var/run/docker.sock --network host --group-add docker --group-add input --group-add render + image: quay.io/kiegroup/kogito-ci-build:main-latest + args: --privileged --group-add docker default_tools: jdk: jdk_11_latest maven: maven_3.8.6 diff --git a/dsl/scripts/pr_check.groovy b/dsl/scripts/pr_check.groovy index aecd20a20..59b5ec6ba 100644 --- a/dsl/scripts/pr_check.groovy +++ b/dsl/scripts/pr_check.groovy @@ -22,16 +22,13 @@ import org.kie.jenkins.MavenCommand // TODO Docker image and args could be passed as env or anything ? dockerGroups = [ 'docker', - 'input', - 'render', ] dockerArgs = [ - '-v /var/run/docker.sock:/var/run/docker.sock', - '--network host', + '--privileged', ] + dockerGroups.collect { group -> "--group-add ${group}" } void launch() { - String builderImage = 'quay.io/kiegroup/kogito-ci-build:19a0b303bc64f473a01f5fa5bacde822f10b4946' // last main-latest based on ubi + String builderImage = 'quay.io/kiegroup/kogito-ci-build:main-latest' sh "docker rmi -f ${builderImage} || true" // Remove before launching try {