Visit Jenkins site and download it for Windows. It will be .msi file.
Then, extract the file and it will save itself in Program Filex(x86) under Jenkins folder.
It should end successfully. However in case you get failure, there can be two main reasons.
a. Incorrect Java version or Java path:
set PATH=%JAVA_HOME%\bin;%PATH%;
b. Port 8080 is already in use
If you run Jenkins using the command line, then you can execute a command such as java -jar -httpPort=8081 jenkins.war to change the existing port from 8080 to 8081.
Open the Jenkins.xml in the editor
Find "--httpPort=8080" and replace the port 8080 with the new port number
Right click on the "Jenkins" line > Restart.
Then go to URL: http://localhost:8082/
It was ask you to provide passward. Don't worry, it will also show you how to get password.
To create additional user, login with admin account and follow below step:
Manage jenkins → Manage User → Create User.
Hope you enjoy learning Jenkins.
Then, extract the file and it will save itself in Program Filex(x86) under Jenkins folder.
Now open command promt and go to directory where Jenkin folder is present and run below command
D:\>Java –jar Jenkins.warIt should end successfully. However in case you get failure, there can be two main reasons.
a. Incorrect Java version or Java path:
Jenkins requires latest version of Java and you will need to download if from net. Then set the java path as below:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161set PATH=%JAVA_HOME%\bin;%PATH%;
b. Port 8080 is already in use
Most of the application uses port 8080 as it is a default port. In case you too see similar issue, you can change the port from 8080 to something say 8081.
Below are steps:If you run Jenkins using the command line, then you can execute a command such as java -jar -httpPort=8081 jenkins.war to change the existing port from 8080 to 8081.
Another way to change the port while Jenkins is installed using the Windows package is as follows:
Go to the Program Files/Jenkins directory where you installed JenkinsOpen the Jenkins.xml in the editor
Find "--httpPort=8080" and replace the port 8080 with the new port number
After you have made any changes, it is better to restart Jenkins. To restart
Press Win + R.
Type "services.msc"Right click on the "Jenkins" line > Restart.
Then go to URL: http://localhost:8082/
It was ask you to provide passward. Don't worry, it will also show you how to get password.
To create additional user, login with admin account and follow below step:
Manage jenkins → Manage User → Create User.
Hope you enjoy learning Jenkins.
No comments:
Post a Comment