Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "Jenkins URL" means in configuration settings?

Tags:

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?

like image 447
SimonD Avatar asked Jun 27 '12 07:06

SimonD


People also ask

What is a Jenkins URL?

Once the installation is complete, you can access Jenkins using the http://localhost:8080 (8080 is the default port for Jenkins server unless you haven't provided any specific port by yourself).

How do I find my Jenkins URL?

The file config. xml in the Jenkins home folder. Right.

How do I change my Jenkins URL?

Fixing a root urlGo to Jenkins > Manage Jenkins > Configure System, and locate the section titled "Jenkins Location". You should see the warning here as well. Replace "localhost" with a valid hostname. Click Save.

What is Jenkins configuration?

Jenkins is a leading open source CI server. It is flexible, providing hundreds of plugins to support building, testing, and deployment, and is capable of automating any project. Jenkins CI infrastructure can be deployed to on-prem, in the cloud using configuration management tools, and third-party vendor.


1 Answers

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.

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).

like image 131
malenkiy_scot Avatar answered Oct 05 '22 20:10

malenkiy_scot