It´s been a couple of days trying to build Ionic app with Jenkins, tried different fix approached, and failed every single time, so I´ll appreciate your help.
Version stack: NODE: v6.10.3 Ionic: v3.3.0 Cordova: v7.0.1 Gradle: 3.5
Environmental variables
ANDROID_HOME
JAVA_HOME
PATH = c:\Gradle\bin 'I read about this and the page suggested to use c:\Gradle\bin\.gradle\3.5 but is not been recognized'
I'm able to build locally but when trying to build from Jenkins using same commands on Powershell I got the following error
ANDROID_HOME=C:\Users\Integration\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131 Error: Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio
I already tried the following fixes:
- Reinstall Android SDK
- Reinstalling Ionic and cordova globally
- Using Jenkins Gradle