Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a scriptable option for selecting Unity installation #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tommikiviniemi-srs
Copy link

Can use environment and build variables, instead of selecting from a static drop-down box. Should still point to a name in the global Unity3d installations. Standard behaviour until used.

@Brantone
Copy link

Brantone commented Jun 3, 2016

To a certain extent, isn't this already available by defining a Unity installation with:
Name = "Mac Unity Version Param Install"
Installation directory = "/Applications/${unity_version_dirname}/Unity.app"

And as long as the job has "unity_version_dirname", then it will expand that variable.

I know this works (as currently using it), curious what else this PR is adding ... (macro?)

@tommikiviniemi-srs
Copy link
Author

Hi,

We use a Groovy script to dynamically create the define, say
${UNITY_INSTALLATION}, inside the build job.
The vanilla version of the plugin only allows to pick from an existing
name, and IIRC does not expand the name, so doing something like
map["UNITY_INSTALLATION"] = "path"
does not work. I can't remember the exact specifics anymore but I am 100%
certain I tried to make a "dummy" installation inside generic Jenkins
settings and overriding it as explained, but it did not expand it properly.
So the extension allows for dynamically defining installation paths at
runtime via Groovy.

  • Tommi

On Sat, Jun 4, 2016 at 12:13 AM, Brenton B notifications@github.com wrote:

To a certain extent, isn't this already available by defining a Unity
installation with:
Name = "Mac Unity Version Param Install"
Installation directory = "/Applications/${unity_version_dirname}/Unity.app"

And as long as the job has "unity_version_dirname", then it will expand
that variable.

I know this works (as currently using it), curious what else this PR is
adding ... (macro?)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AG88aJ3hRbRIUe0xpjE9i4RqkYyxDCHpks5qIJkJgaJpZM4IKtTk
.

@Brantone
Copy link

Brantone commented Jun 7, 2016

I haven't tried using "Inject Env Vars" in conjunction with Unity3d yet, but we have a setup operating in production that takes in a parameter for the Unity version, then the unity3d plugin itself has the named install directory using that parameter ... and it works. Mind you, this is a fairly simple setup.

@monsieurh
Copy link

That would be something we direly need too. Is this still functioning ? I tried to reproduce @Brantone setup to no avail. Did you use "Inject Env Vars" to make it work ?

@tommikiviniemi-srs
Copy link
Author

tommikiviniemi-srs commented Jun 24, 2019 via email

@tommikiviniemi-srs
Copy link
Author

tommikiviniemi-srs commented Aug 21, 2019

Any chance of accepting this pull request?

It makes the Unity installation scriptable by accepting environment variables. There seems to be quite a few people needing this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants