Upload to HockeyApp from Jenkins

喜夏-厌秋 提交于 2019-12-13 05:47:31

问题


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.



来源:https://stackoverflow.com/questions/54760507/upload-to-hockeyapp-from-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!