Skip to end of banner
Go to start of banner

Examples

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 114 Next »

Action usage examples

Examples give users ideas on actual usage. We use automation to generate, test, and run these actions, so names and combinations may be odd or repetitive (wink). In many cases, other actions or environmental setup is required for the action to run, so you will need to adjust the action parameters and setup appropriate for your environment. 

Command line environments can be different, especially between Windows and non-Windows systems. Our Tips page talks about command line escaping differences and there are differences with respect to environment variable references ($ for non-Windows and %...% for Windows). These differences can impact examples, so recognize and adjust for your platform. In particular, all examples here are run with the standard bash shell on Linux.



addLicense

--action addLicense --app "org.swift.confluence.html" --file "-"
--action addLicense --app "org.swift.confluence.html" --file "build/output/upmcli"

addLicenses

--action addLicenses --file "build/output/upmcli/licenses"

getApp

--action getApp --app "Wiki Markup for Confluence"
--action getApp --app "com.atlassian.upm.atlassian-universal-plugin-manager-plugin"
--action getApp --app "org.swift.confluence.html" --dateFormat "yyyy.MM.dd"
--action getApp --app "org.swift.confluence.wiki"

getAppList

--action getAppList --includeSystem --includeDisabled
--action getAppList --outputFormat 999 --columns "name, key, version, application version, marketplace latest compatible version, marketplace latest version"
--action getAppList --regex "((Wiki Markup for Confluence)|(Bob Swift.*))"
--action getAppList --regex ".*HTML.*" --outputFormat 2 --dateFormat "yyyy.MM.dd"

getClientInfo

--action getClientInfo

installApp

--action installApp --app "org.swift.confluence.wiki" --simulate
--action installApp --app "org.swift.confluence.wiki" --wait
--action installApp --app "org.swift.confluence.wiki" --wait --options "uninstall"
--action installApp --file "/opt/atlassian/pipelines/agent/build/src/itest/upm/resources/bobswift-wiki-markup-1.4.0.jar" --wait
--action installApp --url "https://marketplace.atlassian.com/download/plugins/org.swift.confluence.wiki/version/150" --wait
--action installApp --url "https://marketplace.atlassian.com/download/plugins/org.swift.confluence.wiki/version/150" --wait --options "download"

removeLicense

--action removeLicense --app "org.swift.confluence.html"

runFromAppList

--action runFromAppList --limit 1 --common "-a getApp --app @app@"
  • No labels