 
 
   getProjects = (msg, callback) ->
-    url = "http://#{hostname}/httpAuth/app/rest/projects"
+    url = "#{base_url}/httpAuth/app/rest/projects"
     msg.http(url)
       .headers(getAuthHeader())
       .get() (err, res, body) ->

module.exports = (robot) ->
  username = process.env.HUBOT_TEAMCITY_USERNAME
  password = process.env.HUBOT_TEAMCITY_PASSWORD
  hostname = process.env.HUBOT_TEAMCITY_HOSTNAME

  buildTypes = []


# Configuration:
#   HUBOT_TEAMCITY_USERNAME = <user name>
#   HUBOT_TEAMCITY_PASSWORD = <password>
#   HUBOT_TEAMCITY_URL = <scheme://host:port>
#
# Commands:
#   hubot show me builds - Show status of currently running builds
