Search code examples
codenameone

How to automate the build of codenameone project (using only command line)?


How to automate the building of a codename one project (only command line)?

Today, we need to automatize all as possible. Is it possible to write a build pipeline for a CodeName One Project? If yes, Which CI/CD tool is better?


Solution

  • Yes and no. Codename One uses a simple ant script so it's pretty easy to invoke the jar or test targets to automate the build process. This is trivial to do for every CI environment. We've used it with Google Actions, Jenkins and Travis and that's easy.

    Device builds however are more complex. To do that you need the enterprise subscription since it supports synchronous builds. You can read about device build support for enterprise users in the developer guide under the section titled "Continuous Integration & Release Engineering".