Hi!
I want to develop a plugin (if such a thing doesn't exist) that listens on some predefined URL (like
http://jenkins/autobuild), then does the following:
1. Takes the repo URL from the post body.
2. Examines the repo to determine how it is to be built by convention (i.e. Makefile, pom.xml, rakefile, config.xml, ...)
3. See if there's a job existing for that repo & branch, if not, create one. If so, update it if needed (e.g. used to be setup.py, now Makefile).
4. Run that job, returning whatever it does.
The first iteration of this will be to build by Makefile. Subsequent iterations might add a configuration page for selecting the order of checks for various build techniques, and configuring the template config.xml to be used in each case.
My questions for you:
* Has this already been done? I didn't find it when I looked.
* What extension points should I start with? Is there something similar in workflow that I can fork?
Best regards,
Jim