fix some config issues and update to latest smartssh
This commit is contained in:
parent
b59bf2de8d
commit
f091fb2452
7
dist/npmci.env.d.ts
vendored
7
dist/npmci.env.d.ts
vendored
@ -6,5 +6,10 @@ export declare let buildStage: string;
|
||||
export declare let dockerRegistry: any;
|
||||
export declare let dockerFilesBuilt: Dockerfile[];
|
||||
export declare let dockerFiles: Dockerfile[];
|
||||
export declare let config: any;
|
||||
export declare let config: {
|
||||
dockerRegistry: any;
|
||||
dockerFilesBuilt: Dockerfile[];
|
||||
dockerFiles: Dockerfile[];
|
||||
project: any;
|
||||
};
|
||||
export declare let configStore: () => void;
|
||||
|
18
dist/npmci.env.js
vendored
18
dist/npmci.env.js
vendored
@ -8,21 +8,21 @@ if (process.env.CI_BUILD_REPO)
|
||||
exports.buildStage = process.env.CI_BUILD_STAGE;
|
||||
exports.dockerFilesBuilt = [];
|
||||
exports.dockerFiles = [];
|
||||
exports.config = {
|
||||
dockerRegistry: exports.dockerRegistry,
|
||||
dockerFilesBuilt: exports.dockerFilesBuilt,
|
||||
dockerFiles: exports.dockerFiles,
|
||||
project: undefined
|
||||
};
|
||||
exports.configStore = function () {
|
||||
var config = {
|
||||
dockerRegistry: exports.dockerRegistry,
|
||||
dockerFilesBuilt: exports.dockerFilesBuilt,
|
||||
dockerFiles: exports.dockerFiles
|
||||
};
|
||||
plugins.smartfile.memory.toFsSync(JSON.stringify(config), paths.NpmciPackageConfig);
|
||||
plugins.smartfile.memory.toFsSync(JSON.stringify(exports.config), paths.NpmciPackageConfig);
|
||||
};
|
||||
var configLoad = function () {
|
||||
// internal config to transfer information in between npmci shell calls
|
||||
try {
|
||||
exports.config = plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig, "json");
|
||||
plugins.lodash.assign(exports.config, plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig, "json"));
|
||||
}
|
||||
catch (err) {
|
||||
exports.config = {};
|
||||
exports.configStore();
|
||||
plugins.beautylog.log("config initialized!");
|
||||
}
|
||||
@ -43,4 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CIpO1xuICAgIH1cblxuICAgIC8vIHByb2plY3QgY29uZmlnXG4gICAgdHJ5IHtcbiAgICAgICAgaWYoIWNvbmZpZy5wcm9qZWN0KXtcbiAgICAgICAgICAgIGNvbmZpZy5wcm9qZWN0ID0gcGx1Z2lucy5zbWFydGZpbGUuZnMudG9PYmplY3RTeW5jKHBhdGhzLk5wbWNpUHJvamVjdERpcixcIm5wbWNpLmpzb25cIik7XG4gICAgICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy5vayhcInByb2plY3QgY29uZmlnIGZvdW5kIVwiKTtcbiAgICAgICAgfTtcbiAgICB9XG4gICAgY2F0Y2goZXJyKXtcbiAgICAgICAgY29uZmlnLnByb2plY3QgPSB7fTtcbiAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cubG9nKFwibm8gcHJvamVjdCBjb25maWcgZm91bmQsIHNvIHByb2NlZWRpbmcgd2l0aCBkZWZhdWx0IGJlaGF2aW91ciFcIik7XG4gICAgfVxuICAgIFxuICAgIGNvbmZpZy5kb2NrZXJSZWdpc3RyeSA/IGRvY2tlclJlZ2lzdHJ5ID0gY29uZmlnLmRvY2tlclJlZ2lzdHJ5IDogdm9pZCgwKTtcbiAgICBjb25maWcuZG9ja2VyRmlsZXNCdWlsdCA/IGRvY2tlckZpbGVzQnVpbHQgPSBjb25maWcuZG9ja2VyRmlsZXNCdWlsdCA6IHZvaWQoMCk7XG59XG5jb25maWdMb2FkKCk7Il19
|
||||
|
1
dist/npmci.plugins.d.ts
vendored
1
dist/npmci.plugins.d.ts
vendored
@ -2,6 +2,7 @@ import "typings-global";
|
||||
export import beautylog = require("beautylog");
|
||||
export declare let gulp: any;
|
||||
export declare let gulpFunction: any;
|
||||
export declare let lodash: any;
|
||||
export import path = require("path");
|
||||
export import projectinfo = require("projectinfo");
|
||||
export declare let q: any;
|
||||
|
3
dist/npmci.plugins.js
vendored
3
dist/npmci.plugins.js
vendored
@ -3,6 +3,7 @@ require("typings-global");
|
||||
exports.beautylog = require("beautylog");
|
||||
exports.gulp = require("gulp");
|
||||
exports.gulpFunction = require("gulp-function");
|
||||
exports.lodash = require("lodash");
|
||||
exports.path = require("path");
|
||||
exports.projectinfo = require("projectinfo");
|
||||
exports.q = require("q");
|
||||
@ -15,4 +16,4 @@ exports.smartssh = require("smartssh");
|
||||
exports.smartstring = require("smartstring");
|
||||
exports.through2 = require("through2");
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDcEMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUN2QixvQkFBWSxHQUFHLE9BQU8sQ0FBQyxlQUFlLENBQUMsQ0FBQztBQUNyQyxZQUFJLFdBQVcsTUFBTSxDQUFDLENBQUM7QUFDdkIsbUJBQVcsV0FBVyxhQUFhLENBQUMsQ0FBQztBQUN4QyxTQUFDLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2pCLGVBQU8sR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDN0IsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMxQixnQkFBUSxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQy9CLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDakMsa0JBQVUsV0FBVyxZQUFZLENBQUMsQ0FBQztBQUNuQyxnQkFBUSxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQy9CLG1CQUFXLFdBQVcsYUFBYSxDQUFDLENBQUM7QUFDeEMsZ0JBQVEsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUMiLCJ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1aXJlKFwiZ3VscC1mdW5jdGlvblwiKTtcbmV4cG9ydCBsZXQgbG9kYXNoID0gcmVxdWlyZShcImxvZGFzaFwiKTtcbmV4cG9ydCBpbXBvcnQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuZXhwb3J0IGltcG9ydCBwcm9qZWN0aW5mbyA9IHJlcXVpcmUoXCJwcm9qZWN0aW5mb1wiKTtcbmV4cG9ydCBsZXQgcSA9IHJlcXVpcmUoXCJxXCIpO1xuZXhwb3J0IGxldCByZXF1ZXN0ID0gcmVxdWlyZShcInJlcXVlc3RcIik7XG5leHBvcnQgbGV0IHNoZWxsanMgPSByZXF1aXJlKFwic2hlbGxqc1wiKTtcbmV4cG9ydCBpbXBvcnQgc21hcnRjbGkgPSByZXF1aXJlKFwic21hcnRjbGlcIik7XG5leHBvcnQgaW1wb3J0IHNtYXJ0ZmlsZSA9IHJlcXVpcmUoXCJzbWFydGZpbGVcIik7XG5leHBvcnQgaW1wb3J0IHNtYXJ0cGFyYW0gPSByZXF1aXJlKFwic21hcnRwYXJhbVwiKTtcbmV4cG9ydCBpbXBvcnQgc21hcnRzc2ggPSByZXF1aXJlKFwic21hcnRzc2hcIik7XG5leHBvcnQgaW1wb3J0IHNtYXJ0c3RyaW5nID0gcmVxdWlyZShcInNtYXJ0c3RyaW5nXCIpO1xuZXhwb3J0IGxldCB0aHJvdWdoMiA9IHJlcXVpcmUoXCJ0aHJvdWdoMlwiKTsiXX0=
|
||||
|
@ -29,6 +29,7 @@
|
||||
"beautylog": "^5.0.12",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-function": "^1.3.6",
|
||||
"lodash": "^4.13.1",
|
||||
"projectinfo": "^1.0.3",
|
||||
"q": "^1.4.1",
|
||||
"request": "^2.72.0",
|
||||
@ -36,7 +37,7 @@
|
||||
"smartcli": "^1.0.4",
|
||||
"smartfile": "^4.0.5",
|
||||
"smartparam": "^0.1.1",
|
||||
"smartssh": "^1.1.2",
|
||||
"smartssh": "^1.1.4",
|
||||
"smartstring": "^2.0.10",
|
||||
"through2": "^2.0.1",
|
||||
"typings-global": "^1.0.3"
|
||||
|
@ -13,14 +13,14 @@ export let buildStage:string = process.env.CI_BUILD_STAGE;
|
||||
export let dockerRegistry; // will be set by npmci.prepare
|
||||
export let dockerFilesBuilt:Dockerfile[] = [];
|
||||
export let dockerFiles:Dockerfile[] = [];
|
||||
export let config;
|
||||
export let config = {
|
||||
dockerRegistry: dockerRegistry,
|
||||
dockerFilesBuilt: dockerFilesBuilt,
|
||||
dockerFiles: dockerFiles,
|
||||
project: undefined
|
||||
};
|
||||
|
||||
export let configStore = () => {
|
||||
let config = {
|
||||
dockerRegistry: dockerRegistry,
|
||||
dockerFilesBuilt: dockerFilesBuilt,
|
||||
dockerFiles: dockerFiles
|
||||
}
|
||||
plugins.smartfile.memory.toFsSync(
|
||||
JSON.stringify(config),
|
||||
paths.NpmciPackageConfig
|
||||
@ -30,10 +30,9 @@ export let configStore = () => {
|
||||
let configLoad = () => {
|
||||
// internal config to transfer information in between npmci shell calls
|
||||
try {
|
||||
config = plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig,"json");
|
||||
plugins.lodash.assign(config,plugins.smartfile.fs.toObjectSync(paths.NpmciPackageConfig,"json"));
|
||||
}
|
||||
catch(err){
|
||||
config = {};
|
||||
configStore();
|
||||
plugins.beautylog.log("config initialized!");
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ import "typings-global";
|
||||
export import beautylog = require("beautylog");
|
||||
export let gulp = require("gulp");
|
||||
export let gulpFunction = require("gulp-function");
|
||||
export let lodash = require("lodash");
|
||||
export import path = require("path");
|
||||
export import projectinfo = require("projectinfo");
|
||||
export let q = require("q");
|
||||
|
Loading…
Reference in New Issue
Block a user