Skip to content

Commit d0e0a15

Browse files
committed
jenkins
1 parent a5b322f commit d0e0a15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown-file/Jenkins-Install-And-Settings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ pipeline {
547547
dockerContainerName = "${env.JOB_NAME}"
548548
inHostPort = "8082"
549549
inDockerAndJavaPort = "8081"
550-
inHostLogPath = "/data/docker/logs/${dockerContainerName}"
550+
inHostLogPath = "/data/docker/logs/${dockerContainerName}/${env.BUILD_NUMBER}"
551551
inDockerLogPath = "/data/logs"
552552
dockerRunParam = "--name ${dockerContainerName} -v /etc/hosts:/etc/hosts -v ${inHostLogPath}:${inDockerLogPath} --restart=always -p ${inHostPort}:${inDockerAndJavaPort}"
553553
}
@@ -671,7 +671,7 @@ pipeline {
671671
dockerContainerName = "${env.JOB_NAME}"
672672
inHostPort = "8082"
673673
inDockerAndJavaPort = "8081"
674-
inHostLogPath = "/data/docker/logs/${dockerContainerName}"
674+
inHostLogPath = "/data/docker/logs/${dockerContainerName}/${env.BUILD_NUMBER}"
675675
inDockerLogPath = "/data/logs"
676676
dockerRunParam = "--name ${dockerContainerName} -v /etc/hosts:/etc/hosts -v ${inHostLogPath}:${inDockerLogPath} --restart=always -p ${inHostPort}:${inDockerAndJavaPort}"
677677
}

0 commit comments

Comments
 (0)