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 in Jenkins by akhtar
• 14,030 points
124 views

1 answer to this question.

0 votes

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 by MD
• 31,430 points

Related Questions In Jenkins

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
6,149 views
0 votes
2 answers
0 votes
2 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
• 54,010 points
6,009 views
+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
736 views
+13 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,420 points
533 views
0 votes
1 answer
0 votes
1 answer

How to change admin password in jenkins?

Hi@akhtar, To change your admin password, you have to ...READ MORE

answered May 9 in Jenkins by MD
• 31,430 points
89 views
0 votes
1 answer

How to install jenkins in Redhat/CentOS?

Hi@akhtar, To install Jenkins in centOS/Redhat, you can ...READ MORE

answered Feb 6 in Jenkins by MD
• 31,430 points
147 views