Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by Mozleron · Mar 03, 2016 at 09:52 PM · licensingcommand-line

Is it possible to register a serial via the command line without actually running a build?

I have set up a system where we are able to "share" a couple of license keys across a number of Jenkins build agents by using the unity.exe -serial command line switches before using the Unity3d Builder plugin to do the actual build, then calling Unity.exe -returnLicense when it's all done to return the activation to the "pool".

What i'm observing though, is that immediately after successfully obtaining the .ulf license key file, that execution of unity then goes on and tries to compile the unity project that was last compiled on that Jenkins slave. But, since i'm not sending in the -executeMethod nor any of the -build* parameters at that time, I would expect that execution of unity.exe to ONLY try to grab a license for the serial number provided and exit with feedback on whether or not it succeeded.

Is there a way to make unity.exe NOT try to compile the most recently compiled project when trying to obtain or return a license key via the command line, using the -serial or -returnLicense switches?

Eventually, we will probably have multiple projects using Unity, and quite possibly sharing the same build infrastructure. Having Unity try to build projects that may or may not exist on that node at any given time will be problematic if it errors out and kills my build due to that bogus situation.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mozleron · Mar 04, 2016 at 12:26 AM 0
Share

After some consideration, it really strikes me that Unity, especially in -batchmode, should not try to build anything unless it's explicitly given a project to build.

So, with that in $$anonymous$$d, I added -createProject "c:\temp" to the end of my calls to register and return the serial, and ins$$anonymous$$d of trying to build my whole project, it just creates this super small, empty project and exits quickly, without any fuss.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

48 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Editor on Linux Server 0 Answers

ReWired licensing: license-per-seat or license-per-person-using? 0 Answers

Command Line Lightmapping: Breaks if Editor Quits Immediately 1 Answer

Unity Asset Store package has been deprecated 0 Answers

Unity Student plan 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges