我让我的Jenkins在容器中运行,并安装了HTML发布插件来访问报告。尝试访问报告“ {jenkins_utl} / job / TestingAutomation / HTML_20Report /”时,它在框架中显示“拒绝连接”。
下面是我的docker-compose.yml文件
version: '3'
services:
jenkins:
image: "uat/jenkins_https"
user: root
ports:
- "8035:8080"
- "50000:50000"
restart: always
volumes:
- /data/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /opt/evive:/opt/evive
- /root/.m2:/root/.m2
- /var/jenkins_home/jks/
environment:
- "JENKINS_OPTS= --httpPort=-1 \
--httpsPort=8080 \
--httpsKeyStore=/var/jenkins_home/jks/keystore.admin \
--httpsKeyStorePassword=\
-Djavax.net.debug=all"
deploy:
resources:
limits:
cpus: "2.0"
memory: "8G"
reservations:
cpus: "0.50"
memory: "4G"
以下是访问HTML报告时浏览器的屏幕截图。
Message showed when accessed the report
任何对您有帮助的建议。 谢谢