Search Unity

buildtargetid != buildtargetid ?

Discussion in 'Unity Build Automation' started by Karsten, Jul 5, 2021.

  1. Karsten

    Karsten

    Joined:
    Apr 8, 2012
    Posts:
    187
    where to find the buildtargetid you need to use in api calls?
    using the build target(config!!!!) name does not work
    there must be another cloaked id not visible obviously anywhere in the dashboard, also the api docs
    explain where to find the orgid and the projectid , but where to find the buildid is and stays a mythical secret.


    Edit: problem solved , there was a blank in the build target name(!!!!!) which is the buildtargetid for the api. so keep in mind if you run into this issue, that the name of the build target is the {buildtragetid} unlike project and org which have a name AND a id
     
    Last edited: Jul 5, 2021
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,445
    nice! just spend 1hr looking for it, this helped to get closer :)

    Those extra spaces got me also..
    and there's another trap:
    the default name is "Default Android", but that doesn't work since it has space,
    so its actually "default-android" for the working build target id! (found it from full build logs..)

    upload_2021-11-18_13-52-1.png

    And that Copy button icon is not for copying the id to clipboard..

    *wrote down the steps here:
    https://unitycoder.com/blog/2021/11...n-github-commit-message-using-github-actions/

    Nice UX work Unity :p
     
    Last edited: Nov 18, 2021