Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by MixMasterRickyC · Mar 22, 2015 at 02:59 PM · buildcommand-line

Jenkin's build script stalls building Android version.

Hi All,

I've been looking into automating our build process and started working with Jenkins to help us do this.

The issue I have now is that Jenkin's seems to stall when building an Android version of our game, giving me no details as to why it's stalled.

It stalls on this line.

 string lError = BuildPipeline.BuildPlayer(lScene, lFilePath, BuildTarget.Android, BuildOptions.None);

Things I've tried...

  • Run the build script in Unity, it works.

  • Run the build script via the command prompt, it works.

  • Run the build script via a batch script, it works.

  • Run the build script in Jenkin's but build a webplayer version, it works.

but run it through Jenkin's to build an Android version and it stalls and I have no idea why?

Has anyone else experienced a similar issue?

At first I was using the Unity3d plugin and calling the script via the below command line.

 -batchmode -nographics -quit -executeMethod ExternalBuildProcess.BuildAndroid -projectPath "C:\Jenkins\{GAME_NAME}"

When that stalled I tried setting Jenkin's up to run a simple batch script. The batch script used is below.

 cd "C:/Program Files (x86)/Unity/Editor/"
 set "logPath=C:\Jenkins\Logs\LogFile%DATE:/=-%@%TIME::=-%.txt"
 start /wait Unity.exe -batchmode -nographics -quit -executeMethod ExternalBuildProcess.BuildAndroid -projectPath "C:\Jenkins\{GAME_NAME}" -logFile %logPath%


The log files don't seem to differ except that it stops outputting once it tries to build the apk.

Any help would be appreciated.

Thanks, Rick.

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 owen_sixense · Jun 25, 2015 at 10:19 PM 0
Share

I am seeing the exact same thing. It stalls right after the warning about using a compressed texture as an icon, and all of the relevant processes are using 0% CPU. It just spins forever with no additional log output until I kill the Unity process. $$anonymous$$y command line is the same as yours except I don't use -nographics because that has a bug which disables linear color space. PC standalone builds fine.

Unity 0.5.2p4

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Failed to Copy File / Directory from 'Temp/StagingArea/Trampoline' to './build/ios' 1 Answer

Multiple concurrent command line builds? 1 Answer

How can I build iOS from Travis? 0 Answers

Build Unity Game using linux server 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