无法访问在容器内运行的Jenkins HTML发布者报告

时间:2019-07-19 09:13:38

标签: docker jenkins docker-compose containers jenkins-plugins

我让我的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

任何对您有帮助的建议。 谢谢

0 个答案:

没有答案