gitlabhq/gitlab-ci — pull request #478 by yarikdot (2014-09-22 22:34:27+00:00)
Title: Call POST /api/v1/build/:project_id/rebuild to rerun the last build.

For our product we have ~15 repositories small repositories (composer components) and 2 project repositories. When we commit to any them, we need the main repositories to start building. Code from other repositories is then downloaded via composer update.

This patch allows us to add web hook to every project, therefore we are able to rebuild our app everytime something get changed.

PS: Security needs to be improved, because everybody can add builds, howeverthis is first time, I changed something in ruby and I don't understand it much. Hope, you will understand the idea and reimplement it better.