Standard install app tasks
This is for standard Atlassian add-ons that are built with a typical Maven project.
- Uninstall the add-on first to be absolutely safe as UPM will not replace an add-on that has a lower version number. Worse, an install completes successfully anyway.
- Install the add-on with either an obr (first choice) or jar found in the standard Maven location.
standard-task-install.txt
# Assumes working directory is standard Maven project structure # parameter: server - like https://confuence.examplegear.com # Uninstall -a addTask --plan @plan@ --job @job@ \ --description "un-install add-on" \ --taskKey CLI_UPM \ --field "scriptLocation = INLINE" \ --field "scriptBody = -a uninstallAddon --addon @default --continue -s %server% -p ${bamboo.automationPassword}" # Install -a addTask --plan @plan@ --job @job@ \ --description "install add-on" \ --taskKey CLI_UPM \ --field "scriptLocation = INLINE" \ --field "scriptBody = -a installAddon --wait --file @default -s %server% -p ${bamboo.automationPassword}" # Single thread install jobs -a addAgentAssignment --assignment @plan@-@job@ --agent install