Customizing URL in Jenkins

大城市里の小女人 提交于 2019-12-19 09:45:13

问题


I've created Jenkins for managing my project. I want to share these files with a few people. Problem is that URL is http://localhost:8080/ . How can I make it public for my co-workers (I want it public like this side)? I know there is "Jenkins URL" setting in configuration, but when I'll put URL there the page doesn't exist. Any ideas how to do it? (I'm beginner with this stuff so could you explain it to me? thx)

I'm using W7 x64


回答1:


You need 2 things at first:

  1. You need to have an static external IP address. Either your network admin or your ISP should provide you with one.

  2. Once you have the IP, you need to register a DNS name, and point to that IP address.

Alternatively, if you cannot get a static external IP address, you can use a Dynamic DNS (DDNS) service, however you need to make sure your IP address is accessible externally

  1. Find out your external IP address (probably in your router configuration).
  2. Make sure your router and/or firewall allow external traffic to your Jenkins port (8080)
  3. Register on some free DDNS server, such as http://www.noip.com/free



回答2:


there are two ways to perform it.

in case all are under same network they you can add your IP (with fashionate host name you like) in your co-workers system's /etc/hosts file.. its simplest way.

<IP>  <HOST NAME>

Even if you dont want to use the "localhost", you can change it in config.xml.

you can resolve host name using DNS server also



来源:https://stackoverflow.com/questions/29208835/customizing-url-in-jenkins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!