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,180 points
12,236 views

1 answer to this question.

+1 vote
Best answer

Hi@akhtar,

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,140 points

selected Dec 15, 2020 by akhtar

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
1,520 views
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
10,572 views
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
2,389 views
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,037 views
+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 25, 2020 in Jenkins by MD
• 95,140 points
93 views
+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,050 points
21,287 views