I am following this documentation - https://developer.atlassian.com/platform/marketplace/registering-apps/#installing-an-app-using-the-rest-api to upload my custom plugin through rest api call.
However its not getting uploaded, and i am getting 202 as response.
One clarification i need regarding the jar file location- Can i keep my plugin jar in my local and give that location while hitting the post call ?
I am passing the below headers
upm-token
header you just received. - yes application/json
"Content-Type
for the data to: "application/vnd.atl.plugins.install.uri+json
"{ "pluginUri": "${plugin-xml-url}",
"pluginName": "the app name" }
Here, in the plugin-xml-url, should i pass my jar file location ? or atlassian-plugin-xml location? if so, can i have my jar file in my local and give that location ?
Any help is highly appreciated ! Thanks in Advance !
You should provide the "pluginUri" as the jar file location like so:
{"pluginUri": "file:/C:/your_plugin_name/target/name_of_jar.jar"}
At least for me, that worked. Here the uri is your local directory, where your plugin gets built i.e. the target directory after the maven build.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.