Can I update JIRA plugins from a script?

I've got a really old, misbehaving JIRA instance being used for "production" quality work, so it has to stay up and have defined change windows/policies. I'm trying to keep the plugins up-to-date (at least), but often, I have to restart the service after an update even if the plugin updater doesn't recommend/require it.

I've scheduled JIRA restarts before using the `at` command in my linux distro. I'd like to schedule a plugin update and a restart together using any other bash/shell commands necessary.

Is this possible?

Also, is there any comprehensive documentation on CLI options for administrators? I couldn't find any.

2 answers

1 accepted

I would create a script which downloads newest version of plugins (*.jar) which you use. Then - when jira restarts - copy those JARs to [jira-home]/plugins/installed-plugins directory.

Is it that easy? The plugins are competely self-contained JARs? There's no scripted upgrade that happens as part of the plugin manager upgrading it?

Yes. If scripts are needed - they will be executed upon jira startup. If you will eventually exeprience problems try adding to script to delete plugin cache directory, but I'm quite sure it will be ok even without it.

There is also a CLI tool by Bob Swift that I believe has plug-in update/install abilities.

I am familiar with those tools, but I wasn't able to find any plugin features in the CLI documentation.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

300 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you