Compile Android project in Hudson continuous integration system?

I am creating a continuous integration system with Hudson , and it is just awesome. I got the SVN repository and integrated the hook after commit, which notifies Hudson when someone commits the repository. This part works great.

The general idea is that if the project does not work, with unit tests or something else, it should inform the employee (I use a simple atm mail notifier). But if that succeeds, I want him to compile the project and build an unsigned file or a signed .apk .

What is the easiest or smartest way to do this? I read that you can use the Shell Command to create .apk , but I can’t understand how this works? Can someone tell me how can I do this, or should I go for another solution?

Thanks in advance

Finn Larsen

+6
source share
3 answers

There is a guide on the Denen Jenkins wiki about creating Android applications using Hudson or Jenkins, including creating and running a test application, getting coverage code, and static analysis statistics.
Essentially, you can use the built-in Ant support to build your application.

If you want to run automated tests, you can also use the Android Emulator Plugin .

Since you are just starting out with Hudson, I would say that now is the right time to upgrade to Jenkins .;)

+6
source

As far as I remember, hudson supports ant builds. And Android applications can be created using ant using this link for more information on creating Android applications using ant. Keep in mind that you will need to install the Android SDK in your build agent.

+2
source

Android provides ant build script. This way you can easily make apk.

  • install android-sdk in hudson server
  • install ant in hudson server (ant version should be> 1.8)
  • in hudson, call cmd android update project -p <PATH to your project>
  • in hudson, call ant debug . debug target creates debug version of apk build
+2
source

Source: https://habr.com/ru/post/898044/


All Articles