var Toolbelt = require('strider-deconst-common').Toolbelt;
var entry = require('./lib/entry');

exports.init = function (config, job, jobContext, callback) {
  callback(null, {
    env: {},
    path: [],

    deploy: function (phaseContext, cb) {
      var toolbelt = new Toolbelt(config, job, jobContext, phaseContext);

      if (hadError(toolbelt.connectToDocker()), cb) return
      if (hadError(toolbelt.connectToGitHub()), cb) return
      if (hadError(toolbelt.connectToContentService(true), cb) return

      entry.prepareControlRepository(toolbelt, function (err) {
        cb(err, true);
      });
    }
  });
};

var hadError = function (err, callback) {
  if (err) {
    err.type = 'exitCode';
    err.code = 1;

    if (callback) callback(err);
    return true
  }

  return false
}

var Toolbelt = require('./lib/toolbelt').Toolbelt;
var entry = require('./lib/entry');

exports.init = function (config, job, jobContext, callback) {
  callback(null, {
    env: {},
    path: [],

    deploy: function (phaseContext, cb) {
      var toolbelt = new Toolbelt(config, job, jobContext, phaseContext);

      entry.prepareControlRepository(toolbelt, function (err) {
        cb(err, true);
      });
    }
  });
};

--- 
+++ 
@@ -1,4 +1,4 @@
-var Toolbelt = require('./lib/toolbelt').Toolbelt;
+var Toolbelt = require('strider-deconst-common').Toolbelt;
 var entry = require('./lib/entry');
 
 exports.init = function (config, job, jobContext, callback) {
@@ -9,9 +9,25 @@
     deploy: function (phaseContext, cb) {
       var toolbelt = new Toolbelt(config, job, jobContext, phaseContext);
 
+      if (hadError(toolbelt.connectToDocker()), cb) return
+      if (hadError(toolbelt.connectToGitHub()), cb) return
+      if (hadError(toolbelt.connectToContentService(true), cb) return
+
       entry.prepareControlRepository(toolbelt, function (err) {
         cb(err, true);
       });
     }
   });
 };
+
+var hadError = function (err, callback) {
+  if (err) {
+    err.type = 'exitCode';
+    err.code = 1;
+
+    if (callback) callback(err);
+    return true
+  }
+
+  return false
+}
Use the common package's Toolbelt.
