 (def verbose false)
 (def port    3000)
 (def workdir "/tmp/bare-repositories")
+(def job-list-command "/api/json?tree=jobs[name]")
+(def branch-job-prefix "branch-")
+
 
 (def jenkins-url (System/getenv "JENKINS_URL"))
 

              (clone-mirror-repo workdir group reponame repository-url))))

(defn start-jenkins-jobs
    [action]
    (let [original-data (:original-data action)]
        (clojure.pprint/pprint original-data)
        )
)

(defn create-or-delete-jenkins-job
    [action]
)

(defn create-action-queue

        (when-let [action (.take actions-queue)] ; blocking operation
            (log/info "Started action for repository" action)
            (clone-or-fetch-mirror-repo action)
            (create-or-delete-jenkins-job jenkins-url job-list-command branch-job-prefix action)
            (start-jenkins-jobs jenkins-url action)
            (log/info "Finished action for repository" action)
        )))

