Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question How to create a release with a badge via ucd.exe?

Discussion in 'Unity Cloud Content Delivery' started by Peter77, Jul 14, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,630
    I would like to assign a badge while creating a release using the CLI tool.

    The reason is because I have to pass the ReleaseID to
    ucd.exe badges add
    , but the ReleaseID is generated by
    ucd.exe releases create
    . So I need to parse stdout to get my hands on the ReleaseID.

    Is there a way to get the ReleaseID without parsing stdout?

    Ideally I would like to assign a badge to the "releases create" command, like:
    Code (CSharp):
    1. ucd.exe releases create --bucket myBucketID --badge myBadge --force-badge
    The
    --badge
    flag expects the string to add as badge.
    The
    --force-badge
    flag would be to move the badge to this release, in case it's assigned to another release already, without a yes/no prompt.

    I'm using
    ucd_0.9.9
    and run it on a Windows Jenkins Server.
     
    Last edited: Jul 14, 2021
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    131
    Thanks. This is a good suggestion that I could see being useful for a lot of people. I'll bring it up to our product management fokls.
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,630
    Thank you for the reply. Any chance you can tell me when this feature is being added? I'm a bit in a rush, if the change takes more than a month to become available, I need to find another solution/workaround in the meantime.
     
  4. ChristinaGuo

    ChristinaGuo

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    48
    Hi Peter, I'm the PM on the team. We're going to scope and prioritize this. Let me get back to you on timing by the end of this week. I expect it will be completed well within the next month.
     
    Peter77 likes this.
  5. ChristinaGuo

    ChristinaGuo

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    48
    Hi @Peter77 , great news! We just released CLI v0.9.14. Which now allows you to add a badge with release! Other updates include:
    • --interactive flag added globally (to disable y/n prompt)
    • promote-only bucket support
    • added --release to entries sync command
    • improved upload behavior of sync
    • added --badge with releases create command (and with entries sync when --release is specified)
     
    Brogan89 and Peter77 like this.
  6. resakosix

    resakosix

    Joined:
    Sep 26, 2012
    Posts:
    5
    Hello,
    A question about --interactive, how would you use it?
    I'm trying different combinations for releasing with badge and cannot figure out how to remove the y/n prompt on:
    ucd releases create -n "release" --badge development 

    I tried putting --interactive on every place, tried to put things like --interactive false, --interactive 0 to no avail

    Can you give me an example for this? Thank you very much
     
  7. ryan_ngo

    ryan_ngo

    Unity Technologies

    Joined:
    Feb 2, 2021
    Posts:
    35
    Hi! The "interactive" flag can be set to the release command by adding
    Hopefully this helps!