lacostej / jenkins-unity3d-plugin

Jenkins Unity3d plugin
MIT License
43 stars 9 forks source link

Unity3d Builder configuration parameters #3

Closed patricksebastien closed 11 years ago

patricksebastien commented 11 years ago

Might not be an issue, but how to pass some parameters to "MyEditorScript"? Reading the documentation:

Unity3d Builder configuration parameters Parameter Since version Description command line 0.1 The full command line, the builder adding the -projectPath if it isn't specified

But it's not working, setting: [X] This build is parameterized String Parameter Name: command line Default value: -batchmode -quit -executeMethod MyEditorScript.PerformBuildiOS -version 1.1.9

Leaving "Invoke Unity Editor" - "Editor command line arguments" empty.

In MyEditorScript i am using "system.environment.getcommandlineargs" and it's working (i can get the version number) to use in MyEditorScript.

Also I will be using the RESTful API to launch job (need a bunch of parameters). Thanks!

lacostej commented 11 years ago

There is an argument called project path in your builder configuration. This is the one you want to set your version parameter into.

You can since today's HEAD build use environment or build environment to pass these values.