Comments (14)
Possible workaround for the issue:
- Leave Unity-Version and Unity-Executable field in the build step setting blank
- Create a symbolic link from "C:\Program Files (x86)\Unity" to "C:\Program Files\Unity (YOUR-VESION)" by using the cmdline tool "mklink /J"
from teamcity-unity3d-build-runner-plugin.
Sounds like you are running in to the same problem I had. Take a look at my PR: #22. You will also need #20 to build it.
I might put a prebuilt version up somewhere if I can be bothered this coming weekend, seen as how it is an issue for people.
from teamcity-unity3d-build-runner-plugin.
i'm having the very same issue. any chance you'll release a fixed prebuilt version?
from teamcity-unity3d-build-runner-plugin.
Same issue. PR: #22 doesn`t work for me. Anyone have a idea?
from teamcity-unity3d-build-runner-plugin.
I gave up myself and ended up just ran my own commandline with custom variables filled in per project. That's essentially what this plugin does, but it has added convenience of monitoring Unity versions.
from teamcity-unity3d-build-runner-plugin.
Yes, but right now it doesn't work (for me) so...
Can you send me your commandline? this will help me, and I will not repeat the same work you have already done. Thanks
from teamcity-unity3d-build-runner-plugin.
from teamcity-unity3d-build-runner-plugin.
Text version, replace or remove -buildTarget webgl
with the desired platform, also check the paths.
"C:\Program Files\Unity\Editor\Unity.exe" -batchmode -quit --build_path=C:\Builds\WebGL -projectPath %teamcity.build.checkoutDir% -buildTarget webgl -executeMethod BuildHelper.BuildWebGL -cleanedLogFile C:\TeamCity\buildAgent\temp\buildTmp\cleaned-%teamcity.build.id%.log -nographics
from teamcity-unity3d-build-runner-plugin.
Although you got 2 thumb-ups, it's hard to understand how this can be a workaround (how this can make an incompatible runner compatible) and actually it doesn't work for me.
from teamcity-unity3d-build-runner-plugin.
Hello Guys I am new to TeamCity and running into exactly the same issue.
As @tylo suggested to make Unity build using command line.
Need to where and how can I put command line in TeamCity to make Unity's build.
Quick feedback would be great
from teamcity-unity3d-build-runner-plugin.
Hi @AliZaibVR
Just add a build step with the Command Line
runner type and enter your unity build command there.
from teamcity-unity3d-build-runner-plugin.
Hello @hex
Thanks for the help and quick response. Things are lot clear to me.
I am trying command line arguments as you said.
We are passing variables like build target, build path etc in command line. How do we access it in the executeMethod ? Because we need these values to pass in "BuildPipeline.BuildPlayer(levels, locationPathName,target)" function in executeMethod.
from teamcity-unity3d-build-runner-plugin.
@AliZaibVR You can pass params to executeMethod but I never used it myself. From Unity Documentation:
Execute the static method as soon as Unity is started, the project is open and after the optional Asset server update has been performed. This can be used to do tasks such as continous integration, performing Unit Tests, making builds or preparing data. To return an error from the command line process, either throw an exception which causes Unity to exit with return code 1, or call EditorApplication.Exit with a non-zero return code. To pass parameters, add them to the command line and retrieve them inside the function using System.Environment.GetCommandLineArgs. To use -executeMethod, you need to place the enclosing script in an Editor folder. The method to be executed must be defined as static.
I for example, use multiple methods for different scenarios. What is your case?
from teamcity-unity3d-build-runner-plugin.
Oh. I missed it while reading it. I can access them using System.Environment.GetCommandLineArgs.
My case is simple and same as yours. I am going to create multiple build configurations on teamcity that will run different executemethods and these executemethods will handle different scenarios.
Thanks @hex for the help and quick response.
from teamcity-unity3d-build-runner-plugin.
Related Issues (20)
- Android builds? HOT 4
- Configurable windowsUnityPath HOT 3
- New Prebuilt Runner Zip? HOT 4
- 'Unity' does not show up as a Build Step HOT 3
- Updates? HOT 8
- Can't build. HOT 1
- Won't find unity install on windows HOT 3
- Ant Build Error HOT 2
- incompatible runner or incompatible agent HOT 1
- The Build Log does not contain Asset Size information
- Using configuration parameter for required Unity version causes agent requirement to fail HOT 2
- Build Extra parameters are enclosed with quote marks
- Build Agent: Windows 10 mistaken as Mac, Unity not found HOT 2
- IntelliJ compiler errors HOT 1
- Download link for compiled version not working HOT 4
- Next generation of Unity plugin
- Build Path issues in Windows HOT 12
- auto-detect current version of unity installed (windows) HOT 5
- Support multiple versions of unity installed on a single build agent HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamcity-unity3d-build-runner-plugin.