feat(standard-make-pipeline): use host network for test environment
This commit is contained in:
parent
2849a3d8d0
commit
758f37e8e4
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue