Search Unity

Feedback Add --dryrun option to "ucd.exe releases create"

Discussion in 'Unity Cloud Content Delivery' started by Peter77, Aug 24, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,610
    I found that
    ucd.exe releases create
    sometimes does not work, for more details please see this post.

    Having a
    --dryrun
    for the
    releases create
    command, similar to how you implemented it to
    entries sync
    command, would be beneficial for me.

    I follow the "one bucket per platform per environment" approach as recommended here and now I'm in a situation where I want to ensure that all release commands work, before actually creating releases, to avoid that I release the android bucket and later fail to release the ios bucket.

    The CLI steps would be like this (pseudo code)
    Code (CSharp):
    1. if (call("ucd.exe releases create --dryrun --bucket androidBucketID") == failed)
    2.   abortBuild();
    3.  
    4. if (call("ucd.exe releases create --dryrun --bucket iosBucketID") == failed)
    5.   abortBuild();
    6.  
    7. // these calls would still check the return value, I left it out for simplicity in this example
    8. call("ucd.exe releases create android");
    9. call("ucd.exe releases create ios");
    The --dryrun allows to reduce the risk that a sync command fails.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,610
    Any sign from Unity staff, that the feedback has been seen, would be appreciated.
     
  3. sebastienUnity3d

    sebastienUnity3d

    Unity Technologies

    Joined:
    Sep 23, 2020
    Posts:
    24
    Hi Peter,
    Thanks for your feedback and suggestions. One of our engineer is working on that feature as we speak. Will be in an upcoming release soon.

    Thanks for using CCD, feedback is always welcome.
     
    Peter77 likes this.
  4. llunity3d

    llunity3d

    Unity Technologies

    Joined:
    Aug 23, 2021
    Posts:
    24
    Hi @Peter77,
    As of today, version 0.10.3 of the CLI is available and it includes the
    releases create --dryrun
    .
    Let us know if that helps you!

    Thanks again for using CCD and your feedback.
     
    Last edited: Oct 5, 2021
    Peter77 likes this.
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,610
    That's great news! Thank you for the follow up.