Changed job and build modules to use tree api