Skip to content

Commit c85dd7b

Browse files
committed
We don't actually need port mapping in the docker tests. So stop.
1 parent 18983eb commit c85dd7b

13 files changed

+19
-19
lines changed

pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AgentTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void noCheckoutScmInWrongContext() throws Exception {
8181

8282
@Test
8383
public void agentDocker() throws Exception {
84-
agentDocker("agentDocker", "-v /tmp:/tmp -p 80:80");
84+
agentDocker("agentDocker", "-v /tmp:/tmp");
8585
}
8686

8787
@Test
@@ -198,7 +198,7 @@ public void fromDockerfile() throws Exception {
198198
expect("fromDockerfile")
199199
.logContains("[Pipeline] { (foo)",
200200
"The answer is 42",
201-
"-v /tmp:/tmp -p 8000:8000",
201+
"-v /tmp:/tmp",
202202
"HI THERE")
203203
.go();
204204
}
@@ -215,7 +215,7 @@ public void additionalDockerBuildArgs() throws Exception {
215215
expect("additionalDockerBuildArgs")
216216
.logContains("[Pipeline] { (foo)",
217217
"The answer is 42",
218-
"-v /tmp:/tmp -p 8000:8000",
218+
"-v /tmp:/tmp",
219219
"hi there, thisOtherArg")
220220
.logNotContains("hi there, thisArgHere")
221221
.go();
@@ -234,7 +234,7 @@ public void fromDockerfileInOtherDir() throws Exception {
234234
expect("fromDockerfileInOtherDir")
235235
.logContains("[Pipeline] { (foo)",
236236
"The answer is 42",
237-
"-v /tmp:/tmp -p 8000:8000",
237+
"-v /tmp:/tmp",
238238
"HI THERE")
239239
.go();
240240
}
@@ -252,7 +252,7 @@ public void dirSepInDockerfileName() throws Exception {
252252
expect("fromDockerfileInOtherDir")
253253
.logContains("[Pipeline] { (foo)",
254254
"The answer is 42",
255-
"-v /tmp:/tmp -p 8000:8000",
255+
"-v /tmp:/tmp",
256256
"HI THERE")
257257
.go();
258258
}
@@ -284,7 +284,7 @@ public void fromAlternateDockerfile() throws Exception {
284284
expect("fromAlternateDockerfile")
285285
.logContains("[Pipeline] { (foo)",
286286
"The answer is 42",
287-
"-v /tmp:/tmp -p 8000:8000",
287+
"-v /tmp:/tmp",
288288
"HI THERE")
289289
.go();
290290
}
@@ -324,7 +324,7 @@ public void dockerPullLocalImage() throws Exception {
324324
expect("dockerPullLocalImage")
325325
.logContains("[Pipeline] { (in built image)",
326326
"The answer is 42",
327-
"-v /tmp:/tmp -p 8000:8000",
327+
"-v /tmp:/tmp",
328328
"HI THERE",
329329
"Maven home: /usr/share/maven")
330330
.go();

pipeline-model-definition/src/test/resources/additionalDockerBuildArgs.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
pipeline {
2626
agent {
2727
dockerfile {
28-
args "-v /tmp:/tmp -p 8000:8000"
28+
args "-v /tmp:/tmp"
2929
additionalBuildArgs "--build-arg someArg=thisOtherArg"
3030
}
3131
}

pipeline-model-definition/src/test/resources/agentDocker.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
agent {
2727
docker {
2828
image "httpd:2.4.12"
29-
args "-v /tmp:/tmp -p 80:80"
29+
args "-v /tmp:/tmp"
3030
}
3131
}
3232
stages {

pipeline-model-definition/src/test/resources/agentDockerEnvSpecLabel.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pipeline {
3131
docker {
3232
label "thisspec"
3333
image "httpd:2.4.12"
34-
args "-v /tmp:/tmp -p 80:80"
34+
args "-v /tmp:/tmp"
3535
}
3636
}
3737
stages {

pipeline-model-definition/src/test/resources/agentDockerEnvTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pipeline {
3030
agent {
3131
docker {
3232
image "httpd:2.4.12"
33-
args "-v /tmp:/tmp -p 80:80"
33+
args "-v /tmp:/tmp"
3434
}
3535
}
3636
stages {

pipeline-model-definition/src/test/resources/dirSepInDockerfileName.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
agent {
2727
dockerfile {
2828
filename "subdir/Dockerfile"
29-
args "-v /tmp:/tmp -p 8000:8000"
29+
args "-v /tmp:/tmp"
3030
}
3131
}
3232
stages {

pipeline-model-definition/src/test/resources/dockerPullLocalImage.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pipeline {
3434
agent {
3535
docker {
3636
image "maven:3-alpine"
37-
args "-v /tmp:/tmp -p 8000:8000"
37+
args "-v /tmp:/tmp"
3838
reuseNode true
3939
}
4040
}

pipeline-model-definition/src/test/resources/failureBeforeStages.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
pipeline {
2626
agent {
2727
dockerfile {
28-
args "-v /tmp:/tmp -p 8000:8000"
28+
args "-v /tmp:/tmp"
2929
}
3030
}
3131
stages {

pipeline-model-definition/src/test/resources/fromAlternateDockerfile.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
agent {
2727
dockerfile {
2828
filename "Dockerfile.alternate"
29-
args "-v /tmp:/tmp -p 8000:8000"
29+
args "-v /tmp:/tmp"
3030
}
3131
}
3232
stages {

pipeline-model-definition/src/test/resources/fromDockerfile.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
pipeline {
2626
agent {
2727
dockerfile {
28-
args "-v /tmp:/tmp -p 8000:8000"
28+
args "-v /tmp:/tmp"
2929
}
3030
}
3131
stages {

0 commit comments

Comments
 (0)