Search Unity

Upload to Cloud Content Delivery in post-build script

Discussion in 'Unity Build Automation' started by aleasoni, Jan 29, 2021.

  1. aleasoni

    aleasoni

    Joined:
    May 15, 2018
    Posts:
    3
    I have recently started testing out Unity Cloud Build. I was happy to see that it integrates Addressable content builds and Unity Content Delivery quite nicely, and it all works great.
    In addition to the addressable build outputs, I am also trying to upload some other game content files in a Post-build script.
    Sadly it looks like the Unity Content Delivery CLI is not installed in the environment where the unity cloud build runs (i.e. I get "ucd: command not found").

    Is there some setting I am missing, is this use case supported in some way?

    Thanks for the help!
     
  2. markmassoud

    markmassoud

    Unity Technologies

    Joined:
    Sep 16, 2019
    Posts:
    2
    Hi!

    Glad you're satisfied with Unity Cloud Build and its integration with Content Delivery!

    You should be able to access the Content Delivery CLI using the environment variable "${CCD_BINARY_PATH}"

    Don't hesitate if you have more questions,
    Mark.
     
  3. aleasoni

    aleasoni

    Joined:
    May 15, 2018
    Posts:
    3
    Thanks!
     
  4. atchikova

    atchikova

    Joined:
    Jun 25, 2018
    Posts:
    1
    Hi Mark! Could you explain how to use "environment variable "${CCD_BINARY_PATH}"