Search Unity

Is there an API to get the URL for the latest successful build of a project?

Discussion in 'Unity Cloud Build' started by HighSkillz, Oct 20, 2015.

  1. HighSkillz

    HighSkillz

    Joined:
    Oct 16, 2014
    Posts:
    7
    We would like to integrate Unity Cloud Build with our automated deployment processes.
    Is there any API we can use to get the URL for the latest successful build of a project?
    Thx
     
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    46
    There is. If you click on your Name then Cloud Build Settings there's a link to your API key and if you click on the blue text API Key you can go to the API docs (http://docs.unitycloudbuild.apiary.io/#). I'm currently working on reworking the docs and they'll be out soon.

    In this case what will probably be most useful for you is to use the "List All Build Targets" endpoint and include the (undocumented as yet) parameter include_last_success set to true. That'll get you a list of all your targets and their last successful build.
     
  3. HighSkillz

    HighSkillz

    Joined:
    Oct 16, 2014
    Posts:
    7
    Thx. Can you please clarify if this is dependant on a specific subscription level?
    We subscribed to Pro and expected the access to be available as per (https://build.cloud.unity3d.com/landing/).
    However, in the control panel, this seems to require Studio/Enterprise.
    Thx
     

    Attached Files:

  4. HighSkillz

    HighSkillz

    Joined:
    Oct 16, 2014
    Posts:
    7
    (friendly bump)
     
  5. unitychrism

    unitychrism

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    122
    This should be available for you where Tim had indicated (Top-right corner of page, click dropdown menu, select 'Cloud Build Settings' and scroll to the bottom of the page). API access is now available for all plans.
     
  6. HighSkillz

    HighSkillz

    Joined:
    Oct 16, 2014
    Posts:
    7
    Hi. When I go to https://build.cloud.unity3d.com/login/me I still get the following message under "API Key"
    ONLY AVAILABLE WITH STUDIO & ENTERPRISE PLANS
    Upgrade to a Studio or Enterprise plan to get this feature!​
    Thx
     
  7. brainz12345

    brainz12345

    Joined:
    Dec 10, 2012
    Posts:
    12
    Hello. We have a Studio plan and are in fact able to use the API to download IPAs, DSym and APK. We already integrated it to our CI pipeline. One question we have is if we can via the api activate build sharing (get the short code for users to download the app) as we are currently notifying our whole team via slack, and would love to add the share link in the message.
     
  8. HighSkillz

    HighSkillz

    Joined:
    Oct 16, 2014
    Posts:
    7
    (friendly bump)

    When I go to https://build.cloud.unity3d.com/login/me I still get the following message under "API Key"
    ONLY AVAILABLE WITH STUDIO & ENTERPRISE PLANS
    Upgrade to a Studio or Enterprise plan to get this feature!
    Thx
     
  9. unitychrism

    unitychrism

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    122
    My bad. The ability to view your API key for all plans has been made available on the beta website, at the following link:

    https://build-beta.cloud.unity3d.com/preferences

    The bottom of that page should show your API key, regardless of what tier you're subscribed to.
     
unityunity