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

In HockeyApp plugin it seems like the "Clean up old versions at HockeyApp" is no longer working

    Details

    • Similar Issues:

      Description

      When this is selected I keep getting a build failure with the following error reported from this plugin

      "No App ID has been specified; cannot clean up old versions."

        Attachments

          Activity

          Hide
          jnrg Julien R. added a comment -

          It started after the upgrade to 1.0.6

          Show
          jnrg Julien R. added a comment - It started after the upgrade to 1.0.6
          Hide
          orrc Christopher Orr added a comment - - edited

          It looks like the plugin, since version 1.0.6, is always overwriting the configured App ID with the "public_identifier" value it gets from the upload response.

          This response parameter is documented here:
          http://support.hockeyapp.net/kb/api/api-apps#-u-post-api-2-apps-upload-u-

          So if the "public_identifier" is missing (which, from the name, I'm guessing is the case for apps which have public downloads disabled), the App ID will become null, regardless of whether an App ID was configured in the job config. And when the "appId" variable is null, you will see the "No App ID has been specified..." error message.

          Show
          orrc Christopher Orr added a comment - - edited It looks like the plugin, since version 1.0.6, is always overwriting the configured App ID with the "public_identifier" value it gets from the upload response. This response parameter is documented here: http://support.hockeyapp.net/kb/api/api-apps#-u-post-api-2-apps-upload-u- So if the "public_identifier" is missing (which, from the name, I'm guessing is the case for apps which have public downloads disabled), the App ID will become null, regardless of whether an App ID was configured in the job config. And when the "appId" variable is null, you will see the "No App ID has been specified..." error message.
          Hide
          kenyee Ken Yee added a comment -

          A workaround for now appears to be to uncheck the "Use New API URL" checkbox and it seems to work fine. Pretty bad bug though :-P

          Show
          kenyee Ken Yee added a comment - A workaround for now appears to be to uncheck the "Use New API URL" checkbox and it seems to work fine. Pretty bad bug though :-P
          Hide
          kenyee Ken Yee added a comment -

          FYI, if you uncheck the "use new api", it apparently won't delete previous versions if you tell it to only keep N versions. It'll just silently fail to upload.
          I had to tell Jenkins to use the 1.0.5 version of the HockeyApp plugin.

          Show
          kenyee Ken Yee added a comment - FYI, if you uncheck the "use new api", it apparently won't delete previous versions if you tell it to only keep N versions. It'll just silently fail to upload. I had to tell Jenkins to use the 1.0.5 version of the HockeyApp plugin.
          Hide
          brantone Brantone added a comment -

          Is this still a bug in 1.2.1?

          Show
          brantone Brantone added a comment - Is this still a bug in 1.2.1?
          Hide
          brantone Brantone added a comment -

          Fixed in 1.2.1

          Show
          brantone Brantone added a comment - Fixed in 1.2.1

            People

            • Assignee:
              brantone Brantone
              Reporter:
              sdevore Sam D
            • Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: