Jenkins is a tool used for CI / CD. Are you wondering what is CI and CD? Ok let me explain that first.
Continuous Integration (CI) is a process of integrating code changes from multiple developers in a single project .The code is tested immediately after the changes or commit, Whenever the code is committed , the code is built and tested.
Continuous Deployment / Delivery (CD) , when the test is passed , the build is tested in deployment. If the deployment is successful, the code is pushed to production and delivered.
So continuous integration / deployment is continuous process of commit, build , test , and deploy.
Now let’s download Jenkins through command prompt…
Pre-requisite : Install — Java 8 or Java 11 and set Environment Path
Step 1 : Go to https://www.jenkins.io/download/
Step 2 : Click Generic Java Package(.war)
Step 3 : Once you on that .war , it will download into your default location. Go their and open command prompt or directly open command prompt give following details
Cd c: <user/name/Downloads> →Enter
java -jar jenkins.war
Server will start running ( make sure you don’t close your command prompt)
When its finished running , initial Admin password will be generated.
Step 4 : Go to browser →localhost:8080 (By default, Jenkins will run in local host 8080)
Step 5 : Unlock Jenkins window will be opened , Enter Admin password (which generated in the command prompt) and click continue.
Step 6 : Getting started — click Install suggested plugins
Step 7 : After installing plugins , create First Admin User ( if you wish to create its optional )
Note : If you’re not creating , then save the initial admin password for later use
Step 7 : After installing plugins , create First Admin User ( if you wish to create its optional )
Note : If you’re not creating , then save the initial admin password for later use
Step 8 : Configuration screen will appear , save and finish
Step 9 : Jenkins is installed successfully
For server option : If you think , not to use local host 8080 . You can create your own port
Command :
Cd c: <user/name/Downloads> →Enter
java -jar jenkins.war — httpPort=8081 ( rest all same)
Thanks for reading
Happy Testing!
Comments