fix npmci failure when repo env var not set
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user