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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

509 views 1 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