CI Build allows the user to build and publish an app from the command line without any eclipse/installer dependency.
Following are the prerequisites to install CI Build:
com.kony.desktopweb_x.x
com.kony.ios_x.x
com.kony.mobile.fabric.client.sdk_x.x
com.kony.spa_x.x
com.kony.studio.viz.core.win64_x.x(for Windows 64-bit users)
com.kony.thirdparty.jars_x.x
com.kony.windows_x.x
com.kony.windows8_x.x
com.kony.windows10_x.x
com.kony.windowsphone8_x.x
com.pat.android_x.x
com.pat.tabrcandroid_x.x
com.pat.tool.keditor_x.x
com.kony.cloudmiddleware_x.x
Note: Windows platform is not supported in the version 8.0.
HeadlessBuild.properties file is present in the project location.
Upgrade Enterprise project to 8.x or add the below new entries in HeadlessBuild.properties file:
protectedmodeenabled.ios | If the user wants to build for iOS in protected mode, change the value to true. |
protectedmodeenabled.android | If the user wants to build for android in protected mode, change the value to true. |
plugin.dir | Points to the directory, where the plugins required for the build are copied. |
javaloc |
Java home (provide the folder location consisting bin where the Java is installed.) Example: <Install_location>\KonyVisualizerEnterprise8.0\Java\jdk |
androidHome | Android SDK path |
For Proxy setup, the following new entries are applicable: proxy.host proxy.port proxy.username proxy.password |
If you are running CI build on a system behind a proxy, provide proxy details. |
Add the following existing entries in HeadlessBuild.properties file:
Important: There are many keys available in the HeadlessBuild.properties file. However, not all of them are applicable for the CI Build. The keys mentioned above are the only ones applicable for CI Build.
Important: If you do not want to store your password in the headless build.properties file, you can use mfcli to encrypt your password. You can download the mfcli.jar from https://community.kony.com/downloads.
Ensure that you use the corresponding version of MFCLI as that of the Visualizer. i.e 7.x viz, 7.x mfcli, 8.x viz, 8.x mfcli.
To encrypt the password using mfcli (using default password.encryption.key), java -jar mfcli.jar encrypt "Kony@1234"
Encrypted password is: en1801f1abee7b9e12426c062509e1b18epd
Following platforms are supported to build the CI application:
Follow these steps to build the application:
If there is a change in the plugin use –clean parameter, as below:
node build.js –clean
Note: If the binary location is not specified in the file, the binaries are saved in the following default location.
<projectLocation>/Binaries.
The error codes are indicative of failed stage or operation. The actual error messages differ from the description mentioned below:
Example: Error code 50 describes as one of the mandatory field is missing. Actual error message will list the fields missing.
Error Code | Description |
---|---|
50 | One or more mandatory fields are missing in HeadlessBuild.properties. |
51 | At least one platform should be selected for the build in HeadlessBuild.properties. |
52 | Plugin extraction failed (or) one or more mandatory plugins are missing. |
53 | Publishing Kony Fabric application failed. |
54 | Kony Fabric configuration details are missing in HeadlessBuild.properties. Example: error message will be (cloudname, cloudpassword, envname, accountID, mfAppName) is (or) are missing. |
55 | Project porting failed. |
56 | There are no forms created to build the selected channels. Example: There are no forms created for: Desktop |
57 | JAVA_HOME not found in environment variables (or) expected Java version is not found. |
58 | ANT_HOME not found in environment variables (or) expected ant version is not found. |
59 | Expected node version not found. Example: node version mismatch: required 7.10.0, found 6.10.2. |
60 | Expected Xcode version not found. |
61 | Expected Finalizer version not found. |
62 | Build failed for one or more selected platforms. |
Copyright © 2013 Kony, Inc. All rights reserved. |