       :number    (:number content)
       :duration  (:duration content)
       :result    (:result content)
-      :collected (timestamp)
+      :collected (util/timestamp)
       :collector {:name    :kuona-jenkins-collector
                   :version (util/get-project-version 'kuona-jenkins-collector)}
       :jenkins   content}}))

    (let [uri (str url "/api/json")
          http-credentials {:basic-auth [(:username credentials) (:password credentials)]}
          response (http/get uri http-credentials)
          content (parse-json (:body response))]
      content)))

(defn read-build

  (:require [cheshire.core :refer :all]
            [clojure.tools.logging :as log]
            [kuona-core.util :as util]
            [clj-http.client :as http]))

(defn job-to-job
  [job]
  {:name (:name job)
   :url  (:url job)})

(defn read-jenkins-jobs
  [connection url]
  (let [response (connection url)
        result (map job-to-job (:jobs response))]
    result))

(defn http-source
  [credentials]
