self contained build server
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


self-build is a simple build server currently focused on simplicity and easy setup, its main goal is to enable a continues build by just running:

$ lein self-build jobs.edn

Right from within a lein project thus saving us from the need to setup Jenkins or other more complex solutions.

self-build will support only Git as SCM.


Add to your project file under plugins section:

Clojars Project

Define jobs edn file:

 :jobs [
    {:name "play"
     :repo "" 
     :target "/tmp/play" 
     :steps [{:cmd "foo" :args ["help"]}]
     :poll 3000

    {:name "celestial"
     :clear-merge-fail true
     :repo "" 
     :branch "es"
     :target "/tmp/celestial" 
     :steps [{:cmd "lein" :args ["runtest"] :timeout 180}]
     :poll 3000

Now configure under either ~/.self-build.edn or /etc/self-build/self-build.edn:

  :ctx {
    :ssh-key "/home/foo/.ssh/id_rsa"
    :smtp {
      :host ""
      :user "foo"
      :pass ""
      :ssl :yes!!!11
    :mail {
      :from "" :to ""

Now run builds (possibly in a tmux session):

$ lein self-build jobs.edn
2014-Feb-28 21:06:18 +0200 nucleus INFO [self-build.core] - Setting up job play
2014-Feb-28 21:06:18 +0200 nucleus INFO [self-build.core] - Cloned
2014-Feb-28 21:06:25 +0200 nucleus INFO [self-build.core] - Starting to build play

Copyright and license

Copyright [2013] [Ronen Narkis]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.