How to automate installing add-ons for an Atlassian application

Description

Never has it been easier to automate the setup of new Atlassian applications for testing or production. This shows how a single command installs and licenses all the add-ons you require for your standard Atlassian application setup. We use this type of automation for setting up test instances on a regular basis. 

To optimize this solution, we recommend you create a licenses directory with all your add-on licenses as discussed in How to install and license many apps. Do this once and keep it updated as necessary.

The following requires a CLI 8.3 or higher client.

Jira

atlassian jira -a run --file install-jira-addons.txt

 

install-jira-addons.txt

# Install standard add-ons with licenses for Jira # # atlassian jira -a run --file install-jira-addons.txt   upm -a runFromList --continue \                --common "-a installApp --wait --app @entry@" \                --list " \                    org.swift.jira.cli, \                    org.swift.jira.acli, \                    org.swift.jira.cot, \                    org.swift.jira.cw, \                    org.swift.jira.clone-plus, \                    \                    is.origo.jira.tempo-plugin, \                    com.almworks.jira.structure, \                    \                    com.googlecode.jira-suite-utilities, \                "   upm -a addLicenses --file licenses

Confluence

atlassian confluence -a run --file install-confluence-addons.txt

install-confluence-addons.txt

Bitbucket

install-bitbucket-addons.txt

Bamboo

install-bamboo-addons.txt

Example Output

This is an example run of the Bamboo setup script from above.

Example