feat(standard-make-pipeline): use host network for test environment

This commit is contained in:
wpetit 2023-11-15 16:53:20 +01:00
parent 2849a3d8d0
commit 758f37e8e4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ void call(Map options = [:]) {
try {
def containerImage = buildContainerImage(baseImage, baseDockerfile, dockerfileExtension)
containerImage.inside('-v /var/run/docker.sock:/var/run/docker.sock') {
containerImage.inside('-v /var/run/docker.sock:/var/run/docker.sock --network host') {
String repo = env.JOB_NAME
if (env.BRANCH_NAME ==~ /^PR-.*$/) {
repo = env.JOB_NAME - "/${env.JOB_BASE_NAME}"