"Jenkins URL"是什么?在配置设置中意味着什么? [英] What does "Jenkins URL" means in configuration settings?

查看:283
本文介绍了"Jenkins URL"是什么?在配置设置中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jenkins配置页面的"Jenkins URL"部分中,我将此选项设置为" http://name_of_my_machine.jenkins :8080/" 通常,我通过以下方式打开jenkins:" http://localhost:8080/" 但是这个新选项对我不起作用-詹金斯(Jenkins)无法打开.那是什么意思?

On Jenkins configuration page in section "Jenkins URL" I've set this option to "http://name_of_my_machine.jenkins:8080/" Usually I open jenkins by: "http://localhost:8080/" But this new option did not work for me - Jenkins does not open. So what does it mean?

推荐答案

Jenkins无法自行确定其URL.因此,当它需要创建完整链接时,URL就是从那里获取的.通常,即使您指定了错误的URL,它也不会以任何重要的方式影响Jenkins的工作方式.它肯定不会影响您在浏览器中输入的连接到Jenkins服务器的URL.您可以指定http://localhost:8080(从计算机进行连接并假设您在端口8080上启动了Jenkins时),也可以指定http://<machine_hostname>:8080从任何地方进行连接时.

Jenkins can't determine its URL on its own. So when it needs to create full links that's where the URL is taken from. In general even if you specify the wrong URL it should not affect the way Jenkins works in any significant way. It certainly has no effect on the URL that you enter in your browser to connect to Jenkins server. You can either specify http://localhost:8080 (when connecting from your machine and assuming that you started Jenkins on port 8080) or http://<machine_hostname>:8080 when connecting from anywhere.

因此,无论您指定什么内容,它都不会影响到Jenkins的连接,因此http://name_of_my_machine.jenkins:8080/将不起作用,因为.jenkins不是名称的一部分(例如,ping name_of_my_machine.jenkins将找不到主机).

So no matter what you specify it has no effect on connecting to Jenkins, therefore http://name_of_my_machine.jenkins:8080/ won't work, as .jenkins is not part of the name (e.g. ping name_of_my_machine.jenkins won't find the host).

这篇关于"Jenkins URL"是什么?在配置设置中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆