How do I get the latest version of Atlassian Products from command line?

Hi, folks,

 

I'm trying to write a script that upgrade Atlassian products automatically.

  1. Retrieve latest release link.
  2. Stop service
  3. Decompress and rename
  4. Start Service

How can I retrieve the latest release version programatically?

I hope Atlassian had jira-latestrelease.tar.gz points to the latest one always, so I can use wget 

wget http://www.atlassian.com/software/jira/download/latestbuild.tar.gz

 

Is there any suggestion?

 

Thank you in advance.

 

 

2 answers

This widget could not be displayed.

It's more complex than that.  

The download pages do some basic operating system detection and highlight the most appropriate download for you based on that.  Grabbing it via wget will get you different results.

Also, they do not do "latest", they keep the version numbers, so you'll need to write a simple "find out what latest version is available".

Most importantly though, what you're proposing here is a potential nightmare.  One does not simply "upgrade Atlassian products automatically".  Sometimes, the process can be a simple stop/download/start.  Most of the time, it is not.

I've been using JIRA at least 5 years from now, as well as Confluence, Stash and Fisheye. So far, I never had problem with "Stop/Change/Start" procedure. Simply, it was painful to copy and paste links from web browser. This is detail procedure what I do. 1. Go to www.atlassian.com/software/{jira,confluence,stash,fisheye}/download 2. Get tar.gz 3. Open terminal 4. wget tar.gz 5. inflate tar.gz 6. chown -R installation-dirs 7. stop service 8. remove old symlink 9. create new symlink to inflated dirs from above. 10. start service. For the last 3 or 5 years while upgrading every minor and major versions, I never had any other problem with this procedure. I'm very curious that what your problem for the most of the time was.

I've seen all sorts of problems with this approach. Over the last 10 years, almost every job I've had has been based on "please clean up the mess made by an attempt at a quick upgrade" or "please clean up the mess made by having too many admins". The errors are legion. Now, with more recent versions, Atlassian are getting there. Point releases can be ok. Fisheye and Stash are usually ok with an automatic update. But Jira and Confluence major versions - I've never seen an upgrade that has "just worked", unless they were totally clean systems (no addons, no hacks or tweaks)

This widget could not be displayed.

You might also have a look at this: https://answers.atlassian.com/questions/205705

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

232 views 3 0
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