Check whether branch and build are defined.
Removed button-primary.
Removed console.log