     (job-related-command jenkins-url jenkins-auth include-jenkins-reply? job-name "doDelete"))
 
 (defn log-operation
-    [job-name git-repo branch operation]
+    [job-name git-repo branch operation metadata]
     (println "***" operation "***")
     (println "job-name" job-name)
     (println "git-repo" git-repo)
-    (println "branch"   branch))
+    (println "branch"   branch)
+    (println "metadata" metadata))
 
 (defn send-configuration-xml-to-jenkins
     [url config]

            (.printStackTrace e)
            (error-response-structure job-name command e))))

(defn update-template
    [template git-repo branch]
    (-> template
        (clojure.string/replace "<placeholder id=\"git-repo\" />" git-repo)
        (clojure.string/replace "<placeholder id=\"git-branch\" />" (str "*/" branch))))

(defn start-job
    [jenkins-url jenkins-auth include-jenkins-reply? job-name]


(defn update-job
    [jenkins-url jenkins-auth include-jenkins-reply? job-name git-repo branch metadata]
    (log-operation job-name git-repo branch "update" metadata)
    (let [template (get-template metadata)
          config   (update-template template git-repo branch metadata)
          url      (str (job-name->url (update-jenkins-url jenkins-url jenkins-auth) job-name) "/config.xml")]
