If you have a custom result, you can us it to match its value and change the build state according to the matching result.