The 'run again' buttons in the all builds page and the project page always run do_build. If you have a build where you have specified a different task (for example, core-image-minimal:clean), when you click the 'run again' button the build executes do_build instead of do_clean.
Should be fixed by this https://lists.yoctoproject.org/pipermail/toaster/2015-May/002071.html
Fix for the projects page has been accepted: http://cgit.openembedded.org/bitbake/commit/?id=420b197227394b341bcc1075bc298ecf2aabec46 Fixing the same issue in /builds: https://lists.yoctoproject.org/pipermail/toaster/2015-May/002171.html Please, review and test.
Fix for the /build has been merged into master: http://cgit.openembedded.org/bitbake/commit/?id=ae6349a13f11b6fa90fe5603b000bef14ee0f2f0&h=master
I've tested on commit: 22afc047dd1b8f83e56c4a9862710776c509e3c5, OS: Fedora 22 and the 'run again' button in the all builds page always run do_build task so i reopened the bug.
From the first look my fix was replaced by June code refactoring: http://cgit.openembedded.org/bitbake/commit/?id=44f37394ed3e4ca02f940be172fe4395b0ee0f7d I'll try to revert my changes back.
Fix has been sent for review: https://lists.yoctoproject.org/pipermail/toaster/2015-September/002765.html
Submitted upstream to bitbake-devel.
Accepted: http://cgit.openembedded.org/bitbake/commit/?id=092b1a9eebbd3f0747f6152c63182f18bccb2054
Verified on master: 9f66aa1a11b5b45280aa41bf4517ec56ee5f2ab2