is it possible to install a plugin to remote server via atlas-cli (pi)?

Leonardo Onieva February 19, 2013

Hello

I ussualy install my plugins in my local Jira instance via atlas-cli (pi) commands, and always install the plugin saying "[INFO] Install Plugin: Uploading 'myplugin.jar' to server via UPM: http://localhost:2990/jira"

I've seen here atlas-cli has a parameter named --server and --http-port, but I can't find an example of how to use this parameters to install my plugin in a remote server (instead of localhost), is it possible?

I tryed this but no success:

maven2> pi --server:https://myserver.com --http-port:8443

maven2> pi --server:https://myserver.com:8443

There are errors like this:

Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for plugin '--server:myserver.com': POM '--server:myserver.com' not found in repository: Unable to determine the release version

Thanks
Best Regards

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Grzegorz Dlugoszewski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

The --server parameter is meant to be used with atlas-cli command, not with pi command.

In other words: you should first run:

atlas-cli --server https://myserver.com --http-port 8443

and, when the cli console is loaded, install the plugin using the pi command.

EDIT:

Also, if your server doesn't have default admin credentials set as admin/admin you won't be able to upload your plugin using pi command.

Take a look at this topic for more details: https://answers.atlassian.com/questions/55580/while-running-atlas-cli-how-do-we-specify-admin-username-and-password-to-use

Leonardo Onieva February 20, 2013

Thank you for your comment.

I've tryed

atlas-cli --server:https://myserver.com --http-port:8443

atlas-cli --server:myserver.com --http-port:8443

error: Unable to parse command line options: Unrecognized option: --server:myserver.com
Grzegorz Dlugoszewski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2013

Sorry Leonardo, there's a typo in the command, my bad. There should not be any colon punctuations (":") after "server" and "http-port" parameters.

It should look like this:

atlas-cli --server https://myserver.com --http-port 8443

I'll edit my answer to fix the typos.

Leonardo Onieva February 21, 2013

Thank you very much

Grzegorz Dlugoszewski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2013

You can't do that unfortunately. I've answered that part already (see the "EDIT" part of my answer).

If you don't have administartor credentials set as admin/admin you won't be able to install plugin using pi command. Take a look at this topic for some more help: https://answers.atlassian.com/questions/55580/while-running-atlas-cli-how-do-we-specify-admin-username-and-password-to-use

Leonardo Onieva February 21, 2013

sorry, I didn't see your full edit

Thank you

TAGS
AUG Leaders

Atlassian Community Events