Mardavij
Mardavij

Reputation: 51

jenkins URL with computer name does not open page

I know this question is asked before but I could not find any right solution for that

I have install jenkins on my windows 7 as windows service, it works fine with default URL localhost:8080, but when I set //mycomputerName:8080 in configuration system- jenkins location and then save it and restarted jenkins and enter //mycomputerName:8080 in browser address jenking will not open. I have done the same installation on my laptop windows 7 without any problem, but on my desktop I have installed, uninstalled several times with the same problem.

Upvotes: 2

Views: 16112

Answers (3)

Lavimoe
Lavimoe

Reputation: 1

Add to Vamshi's answer. Instead of the config in the

C:\Users\XXXX\AppData\Local\Jenkins\.jenkins\config.xml (you won't find <argument> in this file)

add the --prefix=\jenkins to the <argument> in jenkins.xml

C:\Program Files\Jenkins and restart the service.

Upvotes: 0

Vamshi
Vamshi

Reputation: 51

I just want to give my solution

  1. Go to Jenkins Home Directory ( I have mine in C:\Jenkins)
  2. Edit jenkins.xml
  3. Add this --prefix=/jenkins to the end of the argument as show below and restart the jenkins service ALL worked OK for me !

Example : <arguments>-Xrs-Xmx256mDhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080 --prefix=/jenkins</arguments>

  1. Open Url http://localhost:8080/jenkins this should bring up the home page of jenkins

Upvotes: 5

Mardavij
Mardavij

Reputation: 51

As I said in my question above many people have asked this question and had the same problem but all answer have been something from jenkins documentation and actually not solution. so finally I found the problem and write it here probably for some people with the same problem

first I uninstalled jenkins removed all files, folder and everything related to jenking also from windows registry and installed jenking but did not work. reinstalled windows (upgrade) and installed jenking again but did not work. next I clean reinstalled windows and installed jenkins and in this case jenkins works as I expected but I do not know what was wrong with the windows.

Upvotes: 0

Related Questions