Sunday, October 08, 2017

Jenkins Offline Install on Red Hat Enterprise Linux Server

In this post we will see how to do an offline install Jenkins and required plugins on a Red Hat Enterprise Linux Server release 7.3. This is likely the case when your server is behind a firewall. But you have access to internet from your workspace. The assumption here is that you have sudo access on the server to do the install. Follow these steps...
  1. Make sure you have Java 8 or higher installed on your server and that JAVA_HOME is set, as well as $JAVA_HOME/bin is in PATH
  2. Download the RPM key for jenkins from https://jenkins-ci.org/redhat/jenkins-ci.org.key.
  3. Import the key
    sudo rpm --import jenkins-ci.org.key
  4. Download the rpm package for the Jenkins version you want to install from http://pkg.jenkins.io/redhat-stable/.
  5. Install Jenkins using the following command
    sudo yum install jenkins-2.73.1-1.1.noarch.rpm
Jenkins Installation Folder on Red Hat Enterprise Linux Server release 7.3
Once you are done with the above steps, Jenkins will be installed in /var/lib/jenkins folder. You will also be able to see the jenkins.war file in /usr/lib/jenkins folder.
Start and Stop Jenkins manually
To start and stop Jenkins manually instead of using systemctl, you can use the following commands
sudo service jenkins start
sudo service jenkins stop
Setup Jenkins Plugins in Offline Mode
To install plugins in offline mode, you have download the .hpi plugin file from https://updates.jenkins-ci.org/download/plugins/. However, if you go this route, you will have to download the dependencies too, which can make this task near impossible. The easier way is to
  1. Install Jenkins and the related plugins on your workstation, or any other machine (It can be Windows machine too).
  2. Once all the plugins are downloaded, you can copy the plugins folder from the workstation to the Jenkins server /var/lib/jenkins folder.
  3. After you copy, just stop and start Jenkins, and you will see that all your plugins are installed.

23 comments:

  1. Awesome article I really impress it’s very informative and useful.Thanks

    Custom Software Development Sydney

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Great post

    https://speakerdeck.com/xfactor

    ReplyDelete
  4. Hi, constantly i used to check website posts here early in the daylight,
    see here

    ReplyDelete
  5. This is the one of the most important information for me. And I am feeling glad reading your article. The article is really excellent ?

    BSC Result 2022 - B.SC 1st 2nd 3rd Year Exam Result
    B.SC 1st Year Result 2022 | B.SC 2nd Year Result 2022 | B.SC 3rd Year Result 2022.

    ReplyDelete
  6. Keep up the great work! You recognize a lot of people are searching around for this info, you could help them greatly.

    BA Result 2021 - B.A 1st 2nd 3rd Year Exam Result

    ReplyDelete
  7. We have already heard about apostrophe checkers soft that is able to check and correct a text of any size in a matter of seconds, and doing everything so well that the work cannot be distinguished from the texts of professional copywriters! You should definitely look at here now and discover this online tool. The result will definitely please you!

    ReplyDelete
  8. Good evening everyone, I have found a very useful website. I recently tried to correct my sentence for free online and this site really helped me and saved a lot of time. In seconds I was able to check and correct my text for free. It's so convenient! I recommend this site to you too! Fast, easy and high quality, try it!

    ReplyDelete
  9. Are you a writer or a student? Do you need a beautiful and error-free text? Then you should definitely visit this site! By clicking on this link you get to a high-quality and most importantly free! You need to insert your text into the corrector line and get the text ready! look at here now

    ReplyDelete
  10. If you want to correctly express thoughts in English, then you should first of all deal with the active and passive voice and in what cases you need to use them. Active voice checker free app will help you with this, and if you are wrong, it will quickly find the error and fix it.

    ReplyDelete
  11. Here is sharing some data analytics RSA Archer Interview Questions and Answers overview concepts may be its helpful to you.

    RSA Archer Interview Questions and Answers

    ReplyDelete
  12. You ought to make a few additional locale like this. Nice article. Halloween Costume

    ReplyDelete
  13. hi bro how to setup jenkins red packages offline

    ReplyDelete

Popular Posts