Gerrit googleplay publisher plugin credentials has not been configured correctly

后端 未结 4 692
天命终不由人
天命终不由人 2021-01-01 00:39

I use gerrit with Google Play Android Publisher Plugin the way it described in plugin tutorial on the plugin page. .apk is signed and if I upload it via google play gui it

相关标签:
4条回答
  • 2021-01-01 01:06

    The issue was when you uploaded your credential file to Google OAuth Plugin for Jenkins, the credential wasn't being uploaded correctly and there was no credential file for the Google Play Publisher to work correctly.

    0 讨论(0)
  • 2021-01-01 01:11

    I have a same issue, but I solve with change the Google oAuth plugin (dependency for Google Play publish plugin) from v0.4 to v0.3.

    You can downgrade by install manualy.

    1. Download here: https://updates.jenkins-ci.org/download/plugins/google-oauth-plugin/ (this is a *.hpi file)

    2. Manage Jenkins > Manage Plugins > Advanced > Upload plugin

    It works for me.

    0 讨论(0)
  • 2021-01-01 01:17
    • As per János answer, Downgrade Google OAuth Credentials plugin to v0.3
      • Download here
      • Manage Jenkins > Manage Plugins > Advanced > Upload plugin
    • Downgrade Token Macro Plugin to 1.10
      • Download here
      • Manage Jenkins > Manage Plugins > Advanced > Upload plugin
    • Re-import your JSON into the credential store
      • Credentials > (select credential domain) > (find your google credential) > Click Update (toolbox icon) > Choose File > Select the JSON file you downloaded previously > Save
    0 讨论(0)
  • 2021-01-01 01:24

    It's 2018 and unfortunately the issue still exists. The solutions from János answer and Andy Answer are correct.

    Let me write down the working solution step by step in case if someone already have the latest Google Play publish plugin installed.

    1. Uninstall the Google OAuth Credentials plugin
    2. Uninstall the Google Play publish plugin
    3. Download and manually install the Google OAuth Credentials plugin Version v0.3 from here
    4. Restart Jenkins to complete this installation
    5. Download and manually install the Google Play publish plugin Version v1.5 from here
    6. Download and manually install the token-macro plugin Version v1.10 from here

    Now the error from Google Play publish plugin should have gone.

    Update: By following the mentioned procedure of downgrading the version numbers of certain plugins, you would loose the GIT section from you Jenkins Jobs. i.e: You would not be able to select the Git Branch for your Jenkins Job and the Polling to your Git Branch would stop.

    0 讨论(0)
提交回复
热议问题