Installing a custom JIRA add-on via command line on a self-hosted server

Hey everyone,

I’ve got JIRA running on my own server and I’ve made a cool add-on for it. I used the atlas-mvn tool to build it, and now I have a jar file ready for deployment.

Normally, I would sign into the JIRA UI and use the UPM feature for installation. However, I’m curious if there’s a method to deploy it via a command line or using a simple shell script.

I’m not an expert in command line operations, so any guidance, detailed steps, or tips on how to achieve this would be wonderful. Has anyone successfully deployed their add-on this way?

Thanks in advance for your help!

As someone who’s worked extensively with JIRA add-ons, I can confidently say that using the REST API is indeed a solid approach for command-line installations. However, I’ve found that leveraging the ‘atlassian-plugin-sdk’ can streamline the process even further.

First, ensure you have the SDK installed. Then, navigate to your add-on’s directory in the terminal. Use the command ‘atlas-install-plugin’ followed by your server URL, admin credentials, and the path to your jar file. It’s remarkably straightforward and eliminates the need for manual REST API calls.

This method has saved me countless hours, especially when dealing with multiple deployments or automated CI/CD pipelines. Just remember to keep your credentials secure if you’re scripting this process. Happy deploying!

I’ve had success using the Marketplace REST API for command-line installations of JIRA add-ons. It’s a bit more advanced than the UI method, but quite powerful once you get the hang of it.

You’ll need to craft a POST request to the UPM REST endpoint, including your authentication token and the necessary headers. The trickiest part is properly formatting the multipart/form-data to include your JAR file.

I’d recommend using a tool like cURL or Postman to test the API call before implementing it in a script. This approach has been invaluable for our team’s automated deployment processes.

Just be cautious with error handling and ensure you’re following Atlassian’s best practices for add-on deployment to avoid any potential issues with your JIRA instance.

hey amelial, i’ve done this before! u can use the REST API to install ur add-on. basically, u need to send a POST request to the UPM endpoint with ur jar file. u’ll need to authenticate and include the right headers. it’s a bit tricky at first but super handy once u get it working. lmk if u want more specifics!