Articles → LINUX → Install Jenkins On Linux Machine

Install Jenkins On Linux Machine






Steps




sudo –i




sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo


Picture showing the command to add the official Jenkins repository to a Red Hat–based Linux system




sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.keyyum install jenkins




service jenkins status


Picture showing the command to check if check if the jenkins service is enabled or not




service jenkins start


Picture showing the command to start the jenkins service




Picture showing enabling port 8080 in Azure web portal




Picture showing the Putty screen to enter the host name


  • Go to the ConnectionSSHTunnels.
  • Enter the source port as 8080 and Destination as 127.0.0.1:8080 and click on the Add button.
  • Picture showing entering the source and destination address on Putty


  • Finally click on the Open button to connect to the server.
  • A screen will appear to enter the username and password.
  • Now, you can open the following URL. A page will appear to enter the administrator password.
  • http://localhost:8080/


    Picture showing the screen to enter the jetkins password


  • To get the password, you have to execute the following command.
  • cat /var/lib/jenkins/secrets/initialAdminPassword


    Picture showing the command to get the admin password


  • Paste the password and click on the Continue button.
  • Another screen will appear where you can click on the Install Suggested Plugins button.
  • Picture showing the screen to customize jenkins


  • All plugins are installed.
  • Picture showing the list of plug-ins installed


  • Another screen will appear where you can create the admin user. Enter the details and click on the Save and Continue button.
  • Picture showing the screen to create the admin user


  • Another screen will appear to configure the instance configuration. Click on the Save and Finish button.
  • Picture showing




    Picture showing





    Posted By  -  Karan Gupta
     
    Posted On  -  Thursday, November 19, 2020

    Query/Feedback


    Your Email Id
     
    Subject
     
    Query/FeedbackCharacters remaining 250