Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Cloud build can't find Plastic scm repos

Discussion in 'Unity Build Automation' started by metabunity, Aug 14, 2022.

  1. metabunity

    metabunity

    Joined:
    Aug 18, 2020
    Posts:
    3
    I've recently started updating a project after a few months break and was trying to create a build from a different branch. I tried to edit the configuration of my android build and in the basic info settings tab, where the repo and the branch is set, i see a loading icon go on for a while and then it notifies me with "Error: failed to fetch repos.".
    I had this issue before with a webGL build but it worked after I logged into PlasticScm through my browser. This, however does not work anymore.
    Anyway, has anyone had this problem before and/or has any idea what might be causing this?

    Thanks in advance.

    Edit: I'm using my unity credentials for plasticscm
     
    Last edited: Aug 14, 2022
  2. Benjamin-Gooding

    Benjamin-Gooding

    Unity Technologies

    Joined:
    Apr 12, 2022
    Posts:
    246
    Your plastic credentials could have expired. Edit your project settings in Cloud Build. Under the settings you will see your source control. Just click the save button in the Source Control settings area. This will generate a new Plastic Token. If you continue to have issues then we can gather more information to dig into what would be causing a potentially valid token to not return results.
     
  3. chad_unity872

    chad_unity872

    Joined:
    Jun 28, 2022
    Posts:
    2
    I think you need to setup a plastic username and password. The Unity account login in Unity Cloud Build isn't reliable and your approval will be forgotten in a few days. I haven't had an issue by using a plastic username/password/token.
     
  4. Benjamin-Gooding

    Benjamin-Gooding

    Unity Technologies

    Joined:
    Apr 12, 2022
    Posts:
    246
    This issue should now be resolved. After configuring your project to authenticate to Plastic with a UnityId, you should not encounter an error asking to re-authenticate during builds. If you do encounter this issue, please let us know so that we can get to the bottom of it.
     
  5. tjudev

    tjudev

    Joined:
    Jun 6, 2022
    Posts:
    3
    Having the same issue: "Error: failed to fetch repos." , when trying to make an iOS build, using Unity ID for Plastic SCM
     
  6. tjudev

    tjudev

    Joined:
    Jun 6, 2022
    Posts:
    3
    Hello, can you pinpoint if possible this with a screenshot, i can't find project settings under cloud build: "Edit your project settings in Cloud Build. Under the settings you will see your source control"
    Thanks in advance.
     
  7. ValeryNikulina

    ValeryNikulina

    Unity Technologies

    Joined:
    Oct 26, 2020
    Posts:
    138
    Hi,

    You can find it by going DevOps -> Cloud Build -> Configurations -> Source control & Project settings
    upload_2022-10-25_14-0-7.png
     
    MafiaMoe likes this.
  8. Benjamin-Gooding

    Benjamin-Gooding

    Unity Technologies

    Joined:
    Apr 12, 2022
    Posts:
    246
    I'll be digging into this over the coming days and can hopefully figure out the root cause of why these issues popped back up.