I'm developing plugins for a major system (Moodle), so Continuous Integration will be useful for me.
The idea is to checkout Moodle stable version branches I want to publish the plugin for, to run the test with these versions.
But as I've never worked with Jenkins nor Continuous Integration, I've no clear when would be the best moment to trigger the build that run the tests. These are the build triggers Jenkins offers:
- Trigger builds remotely (e.g., from scripts)
- Build after other projects are built
- Build periodically (cron-like; I don't think would be suitable)
- Build when a change is pushed to GitHub (could be)
- Poll SCM (can't see difference with the periodic build)
Apart from these, we have the Git hooks, which at first sight I find them more interesting that what is above.
- Pre/post commit
- Pre/post merge (could be nice for triggering builds only for certain branches)
- Pre/post push
Note: Git plugin for Jenkins fails always when fetching Moodle repo, it seems because its quite long size (I don't know if Git plugin es necessary/important for this approach).
Aucun commentaire:
Enregistrer un commentaire