Upload to HockeyApp from Jenkins

2019-08-30 02:24发布

问题:

I have hosted and running builds in jenkins using AWS ubuntu machine. I want to upload the build once the build is generated in the post build process.

I added HockeyApp plugin in the jenkins and created an API token with full access after signing up in HockeyApp.

I entered the api token, mentioned Upload app and the file path.

I however get the below error and I am not sure where am I going wrong

Got unexpected response code from HockeyApp: 400
{"errors":{"credentials":["api token invalid"]}}
Build step 'Upload to HockeyApp' marked build as failure

I am generating the api token from the link https://appcenter.ms/settings/apitokens

回答1:

You should go to HockeyApp App token page to create the API token, the link in your answer is from AppCenter, which is the next generation of HockeyApp. Now the two platforms have separate API tokens and you should use the corresponding token in each one.

HockeyApp and HockeyApp jenkins plugin are still working, and as yash said above, HockeyApp is going to close on Nov.16, refer thier declaration here. I guess the plugin will retire at that time, but it's still working now.