fix npmci failure when repo env var not set

This commit is contained in:
2016-06-10 08:07:04 +02:00
parent 7ecb30cf0a
commit 3867000d0f
6 changed files with 20 additions and 6 deletions

View File

@ -14,6 +14,9 @@ import {test} from "./npmci.test";
import {trigger} from "./npmci.trigger";
import * as NpmciEnv from "./npmci.env";
export {build} from "./npmci.build"
export {install} from "./npmci.install";
export {publish} from "./npmci.publish";
let command;
let commandOption;

View File

@ -4,7 +4,8 @@ import * as paths from "./npmci.paths";
import {GitRepo} from "smartstring";
import {Dockerfile} from "./npmci.build.docker"
export let repo:GitRepo = new GitRepo(process.env.CI_BUILD_REPO);
export let repo:GitRepo;
if(process.env.CI_BUILD_REPO) repo = new GitRepo(process.env.CI_BUILD_REPO);
export let buildStage:string = process.env.CI_BUILD_STAGE;