Unable to locate Android NDK. windows jenkins

hello,
i tried jenkins android build with il2cpp.

When i built with cmd, it worked well.

C:\WINDOWS\system32>"C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Unity.exe"
-projectPath "C:\Program Files (x86)\Jenkins\workspace\UnityBuild"
-quit -batchmode -nographics -buildTarget Android -logFile C:\Users\Public\Editor.log
-executeMethod Game.Editor.MasakMenu.BuildByJenkins 99 Develop Android

But with jenkins,
Error occured.

DisplayProgressbar: Detecting Android SDK
AndroidSDKTools:

	root          : C:\Users\masak\AppData\Local\Android\sdk
	tools         : C:\Users\masak\AppData\Local\Android\sdk	ools
	platform-tools: C:\Users\masak\AppData\Local\Android\sdk\platform-tools
	build-tools   : C:\Users\masak\AppData\Local\Android\sdk\build-tools\28.0.3

	adb      : C:\Users\masak\AppData\Local\Android\sdk\platform-tools\adb.exe
	aapt     : C:\Users\masak\AppData\Local\Android\sdk\build-tools\28.0.3\aapt.exe
	zipalign : C:\Users\masak\AppData\Local\Android\sdk\build-tools\28.0.3\zipalign.exe

AndroidJavaTools:
	java     : C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe
	heapsize : 4096

Android PostProcess task "Detecting Android SDK" took 1722.6076 ms
DisplayProgressbar: Detect Android NDK
Uploading Crash Report
UnityException: Android SDK not found
Unable to locate Android NDK.

above site solveed android sdk problem.
but ndk…

Do anyone know how to fix?

  • windows10
  • jenkins 2.164.2
  • unity2018.3.14f

solved.

jenkins > config > system > global property > environment
add ndk abs path like

D:	ool\android-ndk-r13b  

maybe windows system environment also works.