Nikky
06/26/2019, 10:33 AMurl="<http://admin:admin@localhost:2990/jira/rest/plugins/1.0/>"
token=$(curl -sI "$url?os_authType=basic" | grep upm-token | cut -d: -f2- | tr -d '[[:space:]]')
curl -v -XPOST "$url?token=$token" -F plugin=@build/libs/dbConTest-1.0.0-SNAPSHOT.jar
i got the token and all .. but for some reason i cannot get multipart upload to work
always crashes with java.io.IOException: Error writing request body to server
my code looks like so:
"$baseUrl/rest/plugins/1.0/".httpUpload(listOf("token" to token))
.add(FileDataPart(pluginJar, "plugin"))
.responseString()
the full stacktrace is here: https://gist.github.com/NikkyAI/118812e11f5774eb3292f078afed6837
i guess i can also just invoke the curl code via project.exec
in gradle