Muzaheed
(ahsan Muzaheed)
November 18, 2019, 4:32pm
1
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
and
that solved that new error caused by the gradle bug.
now i am getting this errors>
Task :permission_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 ??
Muzaheed
(ahsan Muzaheed)
November 28, 2019, 9:11am
2
did anybody get any success with android packing in jenkins?