How to change the default Jenkins port in Windows

0 votes

Hi Guys,

I want to change my default Jenkins port no. Because I have my another server that works on same port no 8080. Can anyone help me how can I change my default port no?

Jun 3, 2020 in Jenkins by akhtar
• 38,230 points

2 answers to this question.

+1 vote
Best answer


Yes, you can change Jenkins port no. Sometimes it is required to change port no, so that other server can work on same port no. Follow the below given steps to change Jenkins port no in Windows. 

  1. Go to the directory where you installed Jenkins (by default, it's under Program Files/Jenkins)

  2. Open the Jenkins.xml configuration file.

  3. You can find --httpPort=8080 and replace the 8080 with the new port number.

  4. Restart your Jenkins server.

$ jenkins.exe restart

Hope this will help.

answered Jun 3, 2020 by MD
• 95,320 points

selected Dec 15, 2020 by akhtar
0 votes
go c programex64 files  cilck jenkins xml file  search for default port number change port number to u wish than restat in services it woks
answered Nov 20, 2021 by nikhil reddy

Related Questions In Jenkins

0 votes
1 answer

How to deploy the war file in Tomcat Server with Jenkins pipeline job on an windows machine?

Use deploy to container plugin. Go to the ...READ MORE

answered Sep 30, 2020 in Jenkins by Adil Abdullah Khan
0 votes
3 answers

How to get the Maven Version of a project in Jenkins?

Here is a snippet from our Jenkins ...READ MORE

answered Oct 4, 2019 in Jenkins by Petr Doležal
0 votes
2 answers
+1 vote
0 answers

How to change the jenkins job status manually ( user interaction ) ?

I have 7 freestyle jobs (A,B,C,D,E,F,G) in ...READ MORE

Jul 24, 2019 in Jenkins by Veeranji
• 130 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

How to change Jenkins default folder on Windows?

Hi@akhtar, You can change the default folder of ...READ MORE

answered Oct 26, 2020 in Jenkins by MD
• 95,320 points
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,110 points