I would like to stop hudson from incrementing the build number for failed builds. I see no value in incrementing the build number for failed builds as they are not usable.
I expect this is a simple setting in the config but cannot find it and I can’t find a solution on SO.
Could someone please let me know if this is possible?
A build is a build, whether it’s successful or failed, isn’t it? Build number is different from release number, or version number, or whatever your organization calls it.
Additionally, Hudson stores the entire logs from all builds so you can easily refer back to them. This aids you in your ability to go fix the problems with broken builds. If you didn’t have that, and you had multiple broken builds in a row, how could you tell what the problem was with each of the builds?
IMHO, you can’t find a solution because it’s something both that you shouldn’t be doing, and cannot currently be done.