Triggering a build when code is updated ensures that a build only occurs when necessary. There are two ways to trigger a build when code is updated:
Bamboo Documentation