add port to buildAgent template