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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,088 views 13 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot