Search Unity

Question Plastic CLI in Unity Cloud

Discussion in 'Unity Version Control' started by VOX-NeilC, Oct 19, 2022.

  1. VOX-NeilC

    VOX-NeilC

    Joined:
    Oct 12, 2020
    Posts:
    7
    I can get the changeset from the head revision on a branch being built using 'cm status --head' and I can use that when building locally in Unity to inject a build revision number into my version.

    However, I get an error when building via Unity Cloud - I get 'the system cannot find the file specified'.
    Is there a way to do this when using Unity Cloud at all?
     
  2. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    460
    Unfortunately, you can not simply invoke "cm" in the normal way, but it can be used in Cloud Build by using the $PLASTIC_CM_PATH environment variable.

    Hope this helps!