Announcement

Collapse
No announcement yet.

android packaging in jenkins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    android packaging in jenkins

    "C:\0.UE4\0.jenkinsWorkSpace\ue4GitClone/Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun -compile -compileeditor -installed -nop4 -project="C:\0.UE4\0.jenkinsWorkSpace\svnClone/XXXX.uproject" -cook -stage -archive -archivedirectory="C:\0.UE4\0.jenkinsWorkSpace\svnClone/0.Packaged_XXXX" -package -clientconfig=Development -serverconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -distribution -nodebuginfo -targetplatform=Android -platform=Android_ETC1 -cookflavor=ETC1 -build -utf8output -compressed
    that cmd was taken from unreal editor upon a successful packaging.
    same cmd works fine when i copy paste in windows command prompt .


    but this command fails in jenkins.
    at the begining it was failing for not being able to identify android sdk, ndk and jdk. bcz NVPACK installer add those path in uer level of environment. but jenkin use system level of varaibles. so i had to sopy paste them in system level.

    that solved the tools locating errors.

    in 2nd stage i faced another issues which was causing for a bug in android gradle plugin. sadly ue4 still uses that old buggy gradle plaugin. atleast in 4.21.1.
    to solve that i fixed this

    which was fixed by adding this

    Engine\Build\Android\Java\gradle\gradle\wrapper\gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

    and
    in Engine\Build\Android\Java\gradle\build.gradle i had to update com.android.tools.build:gradle to >

    classpath 'com.android.tools.build:gradle:3.5.2'
    that solved that new error caused by the gradle bug.


    now i am getting this errors>



    Task ermission_library:generateReleaseRFile FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeReleaseResources'. > Multiple task action failures occurred: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #0: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #3: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #2: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #1: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #4: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #5: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. 45 actionable tasks: 45 executed > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #6: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-3.5.2-5435860-windows Daemon #7: Daemon startup failed This should not happen under normal circumstances, please file an issue if it does. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 12s "subst" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. ERROR: cmd.exe failed with args /c "C:\0.UE4\0.jenkinsWorkSpace\svnClone\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleRelease (see C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+0.UE4+0.jenkinsWorkSpace+ue4GitClone\Log.txt for full exception trace) AutomationTool exiting with ExitCode=1 (Error_Unknown) BUILD FAILED Build step 'Conditional steps (multiple)' marked build as failure Guardando archivos Finished: FAILURE

    note>
    none of these error happens in unreal editor or using cmd prompot.

    only happining inside jenkins.


    did anybody have luck to have succeful android packaging using jenkins ??
    Need help or work to be done?
    Contact Info

    #2
    did anybody get any success with android packing in jenkins?
    Need help or work to be done?
    Contact Info

    Comment

    Working...
    X