Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29887

Required Token Macro plugin was not installed by the Google Play APK upload plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I finally got a signed apk uploaded to Google Play as alpha - great.
      However I got stuck with the error:

      ERROR: Publisher 'Upload Android APK to Google Play' aborted due to exception: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/tokenmacro/MacroEvaluationException

      for a while. No matter what name I entered into the .apk filename row, the above error turned up.
      So the reason was the Google Play plugin did not install the required Token Macro plugin. I installed it manually and there I went.

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Sorry about that.
          I had intended for the Token Macro plugin to be an optional dependency, but didn't test thoroughly enough without it installed.

          I'll make a new release today.

          Show
          orrc Christopher Orr added a comment - Sorry about that. I had intended for the Token Macro plugin to be an optional dependency, but didn't test thoroughly enough without it installed. I'll make a new release today.
          Hide
          rogerhu rogerhu added a comment -

          Does 1.4 still have this issue? We see the problem too.

          Show
          rogerhu rogerhu added a comment - Does 1.4 still have this issue? We see the problem too.
          Hide
          rogerhu rogerhu added a comment -

          Downgrading to 1.3 worked fine...possible to issue a new release soon?

          Show
          rogerhu rogerhu added a comment - Downgrading to 1.3 worked fine...possible to issue a new release soon?
          Hide
          umai Jonny Bergstrom added a comment -

          You can just install the Token Macro plugin manually... if possible. Then this error goes away.

          Show
          umai Jonny Bergstrom added a comment - You can just install the Token Macro plugin manually... if possible. Then this error goes away.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          pom.xml
          http://jenkins-ci.org/commit/google-play-android-publisher-plugin/512122c117053a73f79b56f5ae1afcb2bd2b3f7f
          Log:
          [FIXED JENKINS-29887] Make token-macro a hard dependency.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: pom.xml http://jenkins-ci.org/commit/google-play-android-publisher-plugin/512122c117053a73f79b56f5ae1afcb2bd2b3f7f Log: [FIXED JENKINS-29887] Make token-macro a hard dependency.
          Hide
          orrc Christopher Orr added a comment -

          Version 1.4.1 of the plugin has been released, which fixes this issue.

          Show
          orrc Christopher Orr added a comment - Version 1.4.1 of the plugin has been released, which fixes this issue.
          Hide
          rogerhu rogerhu added a comment -

          Thanks for fixing so fast!

          Noticed that the credentials store is not able to auth with the newer versions. I downgraded back to 1.3.1 and this error msg went away:

          Upload failed: The Google Service Account credential 'api-project-xxx' could not be found.
          	If you renamed the credential since configuring this job, you must re-configure this job, choosing the new credential name
          - No changes have been applied to the Google Play account
          Build step 'Upload Android APK to Google Play' marked build as failure
          Finished: FAILURE
          
          Show
          rogerhu rogerhu added a comment - Thanks for fixing so fast! Noticed that the credentials store is not able to auth with the newer versions. I downgraded back to 1.3.1 and this error msg went away: Upload failed: The Google Service Account credential 'api-project-xxx' could not be found. If you renamed the credential since configuring this job, you must re-configure this job, choosing the new credential name - No changes have been applied to the Google Play account Build step 'Upload Android APK to Google Play' marked build as failure Finished: FAILURE
          Hide
          orrc Christopher Orr added a comment -

          rogerhu: Have you tried opening the configuration for that job, making sure the correct credential is selected, then hitting Save?

          If you're having problems, please open a new issue with details.

          Show
          orrc Christopher Orr added a comment - rogerhu : Have you tried opening the configuration for that job, making sure the correct credential is selected, then hitting Save? If you're having problems, please open a new issue with details.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              umai Jonny Bergstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: