Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to deploy a plugin jar from Jenkins to a jira server?

Yagnesh Bhat
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.
August 27, 2015

Can I get some pointers for the above?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Volodymyr Krupach
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 13, 2017

You can do it by putting the plugin into appropriate dir and restarting JIRA: https://confluence.atlassian.com/jira/__installing-a-jira-plugin-manually-245825541.html.

Other option is to use atlas-install-plugin script from Atlassian Plugin SDK. The script should be run from plugin's project directory.

Diego Ferreira
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 13, 2017

Putting the plugin into the appropriate dir and restarting was my first thought, only one question: Any issues deploying this way to JIRA Data Center?

I was testing atlas-install-plugin command and had issues with the server+port+context-path

Our JIRA instance in behind a load balancer, with a HTTPS cert configured to it, redirecting to 8080, and we access it with https://<address> , with no port on the url string. This works for Rest.

Our command goes:

$>atlas-install-plugin --username admin --password pass --plugin-key 
com.something.jplug --server https://<address> --context-path "" --http-port 443

But atlas translates it to https://<address>:433/rest/plugins/1.0/, but only https://<address>/rest/plugins/1.0/ works. 

Any ideas on how to suppress the :<port> ?

Volodymyr Krupach
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 13, 2017

In JIRA data center plugins dir is shared so you copy it once but will need to restart all JIRA instances. You need to test it on yourself.

By default https always goes through port 443 but it's hidden for convenience. So there should not be any difference between https://<address>/rest/plugins/1.0/  and https://<address>:443/rest/plugins/1.0/. Just tested curl with /rest/plugins/1.0/ and it works for me with port 443 and without it. 

Diego Ferreira
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 14, 2017

Thanks again @Volodymyr Krupach

Daniel Wester
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 14, 2017

If I recall correctly, the installing by putting the addon on disk isn't supported in JIRA 7.0+ sad - you'll need to upload it.

0 votes
Daniel Wester
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 14, 2017
0 votes
Diego Ferreira
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 13, 2017

Looking for the same thing. Got any way out of this?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events