MindApproach
  • Unternehmen
  • Ziele
  • Leistungen
    • Smart Software Factory
    • Implementierung
    • Architektur Consulting
    • Trend Scouting
    • Docker Introduction
    • Demystifying Docker
    • Build-Management
  • Beispiele
  • Magazin
  • Kontakt

Kategorien

  • Blog
  • News

Archive

  • September 2017
  • Februar 2017
  • September 2016
  • Mai 2016
  • März 2016
  • Januar 2016
  • Mai 2015
  • März 2015
  • Februar 2015
  • November 2014
  • August 2014
  • Juni 2014
  • Mai 2014
  • November 2013
  • September 2013
  • August 2013
  • Juni 2013

Neueste Beiträge

  • Die JVM im Container
  • Docker Birthday #4 Celebration
  • Docker in der Softwareentwicklung
  • Meetup mit den Docker-Pirates
  • Go-Live SSF V1.0 bei Sherpa.Dresden

Updating Jenkins plugins

6. März 2015
Blog

Some days ago (to be more exactly: On March 4, 2015) new version 1.3 of Workflow Engine was released. A good reason to think about how to update our Jenkins installation.

Of course easiest way would be to do it manually using Jenkins Plugin Manager.

Figure 1 - Jenkins Plugin Manager

Choose „Updates“ sheet, check plugins you like to update, press button „Download now and install after restart“ and wait some minutes.

We like to refer to it as the „traditional way“ which works pretty well and stable.

But on the other side patterns like „Immutable Server“ [01] or „Phoenix Server“ [02] get more and more attention. At first look it seems easy to achieve because Jenkins separates itself (the core) from any other stuff, which is located in a special directory usually named „jenkins-home“.

In our installation variant based on Docker we delivered plugins as part of the Docker image, but to preserve manual changes Jenkins will use them only if they are new (more precisely: they are copied from /usr/share/jenkins/ref/plugins to /var/jenkins-home/plugins during start of container but only if they don’t exist already). Conclusion: We can add plugins via Docker image but we can’t update existing plugins.

The only workaround we found is

  • stopping Jenkins
  • delete content of plugins directory
  • create new Jenkins-Docker image with updated plugins (do you remember configuration file „plugins.txt“ from my last post [03]?) and
  • create and run new Jenkins-Docker container
  • if all steps went well delete „old“ container (optional but recommended)

Now all plugins inside Jenkins-Docker image are new and will be copied to plugin subdirectory inside the already mentioned „jenkins-home“.

Summary:

Updating Jenkins plugins by providing them in Docker image looks crucial. It needs some improvement before it can be used in production.

References and interesting links:

[01] Martin Fowler: PhoenixServer
[02] Kief Morris: ImmutableServer
[03] Jenkins Docker Image with Workflow Engine

Tags: Continuous Delivery, DevOps, Jenkins, Jenkins Workflow Plugin

  • Loading Workflow Scripts
  • Hello World with Jenkins Workflow Engine
  • Jenkins Docker Image with Workflow Engine
  • Continuous Delivery and Jenkins Workflow Engine
  • Home
  • Unternehmen
  • Ziele
  • Leistungen
  • Magazin
  • Kontakt
  • Impressum
  • Datenschutz

© 2022 MindApproach GmbH – Enabling Smart Software Production_

– hosted by Sherpa.Dresden GmbH –