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

This widget could not be displayed.

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.

This widget could not be displayed.
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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

137 views 1 3
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