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

Upload to AppCenter DMG upload failing

    XMLWordPrintable

Details

    Description

      I have configured post build action to upload .dmg to appcenter and i am getting the following error. I am using the latest plugin with the changes made for build version for windows upload. It works fine for windows, apk and ipa. 

       


      ERROR: Build step failed with exception
      io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: HTTP 400 Bad Request: {"error":"Error: Missing required params from body: build_version, version, Service id: "}

      Attachments

        Activity

          mezpahlan Mez Pahlan added a comment -

          Sadly AppCenter have also removed a bunch of documentation but there is this PR that suggests we need to set buildVersion and version for DMG files. I can't yet find where this is documented in the API though.

          https://github.com/microsoft/appcenter-cli/pull/683/files

          I can try and have a go at fixing this assuming that the PR I linked is valid but it would be nice to confirm this in documentation form from AppCenter.

          mezpahlan Mez Pahlan added a comment - Sadly AppCenter have also removed a bunch of documentation but there is this PR that suggests we need to set buildVersion and version for DMG files. I can't yet find where this is documented in the API though. https://github.com/microsoft/appcenter-cli/pull/683/files I can try and have a go at fixing this assuming that the PR I linked is valid but it would be nice to confirm this in documentation form from AppCenter.
          srilakshmi srilakshmi Malla added a comment - - edited

          Hi Mez Pahlan

           

          I have not edited the file name. It is not showing the file name in my Jenkins output. 

          DMG upload requires both build version and build number when i did a manual upload from app center portal

          Are people able to upload .dmg files with out issue with the plugin? I am not sure if i am missing any thing in my parameters. I added version for build version.

           

          Thanks Srilakshmi

          srilakshmi srilakshmi Malla added a comment - - edited Hi Mez Pahlan   I have not edited the file name. It is not showing the file name in my Jenkins output.  DMG upload requires both build version and build number when i did a manual upload from app center portal Are people able to upload .dmg files with out issue with the plugin? I am not sure if i am missing any thing in my parameters. I added version for build version.   Thanks Srilakshmi

          Hi mezpahlan

          Any update?

          Thanks for your help

          Srilakshmi

          srilakshmi srilakshmi Malla added a comment - Hi mezpahlan Any update? Thanks for your help Srilakshmi
          mezpahlan Mez Pahlan added a comment -

          Hi srilakshmi apologies for the delay. Unfortunately not

          I've raised an issue with Microsoft about the documentation but haven't had a chance to look into this further. https://github.com/MicrosoftDocs/appcenter-docs/issues/1083

          PRs from other contributors are welcome. I'd just like to confirm that this is the correct thing to do before proceeding by way of referencing som official documentation.

          mezpahlan Mez Pahlan added a comment - Hi srilakshmi apologies for the delay. Unfortunately not I've raised an issue with Microsoft about the documentation but haven't had a chance to look into this further. https://github.com/MicrosoftDocs/appcenter-docs/issues/1083 PRs from other contributors are welcome. I'd just like to confirm that this is the correct thing to do before proceeding by way of referencing som official documentation.

          Hi mezpahlan

          I will try using the appcenter cli to upload the dmg to know the necessary parameters. I will update you tomorrow.

          Thanks for looking into it.

          Srilakshmi

          srilakshmi srilakshmi Malla added a comment - Hi mezpahlan I will try using the appcenter cli to upload the dmg to know the necessary parameters. I will update you tomorrow. Thanks for looking into it. Srilakshmi

          People

            Unassigned Unassigned
            srilakshmi srilakshmi Malla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: