- Home /
How configure Teamcity for Unity project?
Hi, everyone.
I see no really useful information in the web by searching Teamcity + Unity3D integration. Could someone provide help with setting Teamcity CI software to work with Unity projects for iOS & Android platforms. I do not believe that no one did it :)
Thank you!
Answer by dtretyakov · Dec 20, 2018 at 05:07 PM
Hi, to integrate TeamCity with Unity you need to install the Unity support plugin fro TeamCity, install Unity on the TeamCity build agent machines with required version of Android SDK / XCode for iOS.
Then in the Assets/Editor directory you could create a build scripts for iOS/Android build targets like that: https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildPlayer.html
After that in create a TeamCity build configuration by specifying your repository URL, add "Unity" runner, specify the method reference from created build scripts and trigger a build.
To store created files as a build artifacts declare their paths in the artifact path settings.
@dtretyakov I am using the TeamCity plugin for Unity, and running TeamCity locally. How do I configure the artifact paths for this? No matter what I try, there is never any artifact output. I asked this question here with more details https://answers.unity.com/questions/1835417/how-to-configure-teamcity-artifact-paths-for-a-web.html
Your answer
Follow this Question
Related Questions
Unable to build to Android and iOS using BuildPipeline Failed to copy files 1 Answer
Build Asset Bundles and then build the player 0 Answers
What would be the best audio file atributes for handheld device? 0 Answers
Android SplashScreen with language 0 Answers
Which way is better to handle AssetBundle management 2 Answers