For this purpose it is possible to exploit the build from command line, defined by a buildfile.xml and then run the build from Jenkins or from another environment of continuous integration.
This video (https://my.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-a-continuous-integration-environment-video-v-80) shows how to integrate an environment of continuous integration with build projects WebRatio Mobile. This articles contain the documentation about it, always for the version WebRatio Mobile:
- https://www.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-a-continuous-integration-environment-v-80
- https://my.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-jenkins-v-80
If you are working side Web documentation is available to build the build file using the WebRatio Product Documentation (available directly in WebRatio Platform: Help > WebRatio Product Documentation> Web Modeling User Guide> Tasks> Deploying from CommandLine).
You may still take into account the two resources on Mobile (the process is roughly the same) considering the following differences:
-
the procedure for Mobile Projects allows building also without starting WebRatio, the Web instead inevitably open the IDE
-
Mobile procedure allows you to declare the parameters and then evaluate them in Jenkins using the "Build with parameters" option, the same procedure you can apply it to the Web version, taking into account that the parameters will be different (comparable watching the related buildfile.xml)
To integrate the possibility of building Web projects in a Continuous Integration Jenkins as you can follow these simple steps:
-
Enable commands ant command line (tutorial)
-
Download Jenkins and add in a tomcat in the webapps folder. Start the tomcat and start the application Jenkins (eg. http://localhost:8080/Jenkins)
-
From the dashboard main Jenkins create a new Item type Freestyle
-
Configure the project (Build section) adding a Build Step type Invoke Ant
-
The parameters are Build Step Targets = main and Build File is the absolute path to the XML file that describes the web project
-
Save the configuration
-
From the dashboard main Jenkins perform the build of the newly created project.