actually getting the state of the last build from bamboo
simplified
added configuration