Jenkins and NativeScript?



Is it possible to use Jenkins to build NativeScript? I’ve had an extremely rough time with it. Right now, the problem I’m dealing with is that while tnsbuild works when I run it myself, it doesn’t complete with Jenkins. The error is WARNING: The Java compiler version 10.0.2 is not compatible with the current Android runtime version 3.4.3. In order to use this Javac version, you need to update your Android runtime or downgrade your Java compiler version.

I looked at the NativeScript source code and couldn’t track down this issue to determine where exactly NS is finding the version number, but both my terminal and Jenkins are looking in the same path to for the SDKs.


Just make sure the Java version inside the Jenkins shell is compatible, CLI is just going to use whatever that is available in the environment.