Skip to content

Commit

Permalink
upgrade_jenkins: new function triggered by upgrade-charm (#51)
Browse files Browse the repository at this point in the history
Mainly intended for the release=bundle case, but upgrade-charm is a good hint
that we should upgrade everything possible.
  • Loading branch information
vmpjdc authored and freeekanayaka committed Feb 19, 2019
1 parent 7c71672 commit 7408ecc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reactive/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ def install_jenkins():
packages.install_jenkins()


# This is intended for the release=bundle case, but upgrade-charm
# is a good hint that we should upgrade everything possible.
@hook("upgrade-charm")
def upgrade_jenkins():
status_set("maintenance", "Upgrading Jenkins")
packages = Packages()
packages.install_jenkins()


# Called once the jenkins package has been installed, but we didn't
# perform any configuration yet. We'll not touch config.xml ever again,
# since from this point it should be managed by the user (or by some
Expand Down

0 comments on commit 7408ecc

Please sign in to comment.