The easiest way to install Jenkins on Windows is to use the Jenkins Windows installer. Though we can install Jenkins on linux, mac, dockers etc but in this complete series I'll be using Jenkins hosted from my windows machine. I am using jenkins war file instead of MSI installer. And there is no specific reason why I am doing so.
To launch jenkins using the war file, use this command:
java -jar jenkins.war
Make sure you have java installed before you run this command. Once it is up you can use jenkins at http://localhost:8080
First time it will ask for a password. You can open the file mentioned just above the password field and copy paste that initial password to login for the first time. Then you can set your profile.
After that it will ask for installation of some plugins.
If you don't have a github account, then visit https://github.com/signup and create an account.
If you are not having Github plugins installed on Jenkins, then follow these steps
a. Go to Manage Jenkins and then click on Manage Plugins.
b. Install git and github plugins and restart jenkins.
If you have not created a token for github authentication before, follow the steps:
a. Go to settings.
b. Click on Developer Settings.
c. Click on Personal Access token. Then click on Generate new token. Copy the token and save it somewhere for future reference.
d. Go to credentials manager in Jenkins and add username and token for authentication.