Phate
Phate

Reputation: 6622

Update jenkins war on one machine and then move it to another one: possible?

I have a machine with blocked outgoing connections so it is not possible to update jenkins nor install the plugins I need for my work.

My idea is the following: I download the jenkins .war on my personal laptop and complete the installation + the plugin download. Then I just move this .war to the machine where I need jenkins to be up and running.

Is it possible? Where are the plugins/updated data stored? Also, would it be a problem the fact that my laptop has windows as os, while the destination machine is a linux RHEL?

Upvotes: 0

Views: 859

Answers (1)

JRichardsz
JRichardsz

Reputation: 16574

Your solution sounds crazy :D

This could be help you:

Update Jenkins war

If you have shell access with root privilege, there is a manual way.

  • Download latest war file inside your linux, using wget , curl or just upload it using winscp from your windows.
  • Stop jenkins
  • Backup EVERYTHING: linux snapshot, jenkins workspace, jenkins war file, etc
  • Replace the old war with new war
  • Start jenkins

Detailed steps in this webs:

https://mohitgoyal.co/2017/02/15/upgrade-jenkins-server-to-a-new-version/

https://www.thegeekstuff.com/2016/06/upgrade-jenkins-and-plugins/


Plugin

Jenkins has an option to install plugins called Manage Plugins

enter image description here

This offer two options :

  • (1) Install plugins using available option

    For official and compatible plugins, suggested by Jenkins :

    enter image description here

  • (2) Install plugins using upload option

    For custom plugins or when is not available on official repositories:

    enter image description here

Upvotes: 2

Related Questions