start unclutter env
This commit is contained in:
parent
0d4fd9dbba
commit
0571051009
12
dist/npmci.bash.js
vendored
12
dist/npmci.bash.js
vendored
@ -14,6 +14,10 @@ exports.bash = function (commandArg, retryArg) {
|
||||
else if (exitCode == 0) {
|
||||
i = retryArg + 1;
|
||||
}
|
||||
else {
|
||||
plugins.beautylog.warn("Something went wrong! Exit Code: " + exitCode.toString);
|
||||
plugins.beautylog.info("Retry " + (i + 1).toString + " of " + retryArg.toString);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -21,7 +25,7 @@ exports.bash = function (commandArg, retryArg) {
|
||||
}
|
||||
};
|
||||
exports.bashBare = function (commandArg, retryArg) {
|
||||
if (retryArg === void 0) { retryArg = 3; }
|
||||
if (retryArg === void 0) { retryArg = 2; }
|
||||
if (!process.env.NPMTS_TEST) {
|
||||
for (var i = 0; i <= retryArg; i++) {
|
||||
var exitCode = plugins.shelljs.exec(commandArg).code;
|
||||
@ -31,6 +35,10 @@ exports.bashBare = function (commandArg, retryArg) {
|
||||
else if (exitCode == 0) {
|
||||
i = retryArg + 1;
|
||||
}
|
||||
else {
|
||||
plugins.beautylog.warn("Something went wrong! Exit Code: " + exitCode.toString);
|
||||
plugins.beautylog.info("Retry " + (i + 1).toString + " of " + retryArg.toString);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -38,4 +46,4 @@ exports.bashBare = function (commandArg, retryArg) {
|
||||
}
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmJhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQ2hDLFlBQUksR0FBRyxVQUFDLFVBQWlCLEVBQUMsUUFBWTtJQUFaLHdCQUFZLEdBQV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gcGx1Z2lucy5zaGVsbGpzLmV4ZWMoXHJcbiAgICAgICAgICAgICAgICBcImJhc2ggLWMgXFxcInNvdXJjZSAvdXNyL2xvY2FsL252bS9udm0uc2ggJiZcIiArXHJcbiAgICAgICAgICAgICAgICBjb21tYW5kQXJnICtcclxuICAgICAgICAgICAgICAgIFwiXFxcIlwiXHJcbiAgICAgICAgICAgICkuY29kZTtcclxuICAgICAgICAgICAgaWYoZXhpdENvZGUgIT09IDAgJiYgaSA9PSByZXRyeUFyZyl7XHJcbiAgICAgICAgICAgICAgICBwcm9jZXNzLmV4aXQoMSk7XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZihleGl0Q29kZSA9PSAwKXtcclxuICAgICAgICAgICAgICAgIGkgPSByZXRyeUFyZyArIDE7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcIlNoZWxsRXhlYyB3b3VsZCBiZTogXCIgKyBjb21tYW5kQXJnLmJsdWUpXHJcbiAgICB9XHJcbn1cclxuXHJcbmV4cG9ydCBsZXQgYmFzaEJhcmUgPSAoY29tbWFuZEFyZyxyZXRyeUFyZyA9IDMpID0+IHtcclxuICAgIGlmICghcHJvY2Vzcy5lbnYuTlBNVFNfVEVTVCl7XHJcbiAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8PSByZXRyeUFyZzsgaSsrKXtcclxuICAgICAgICAgICAgbGV0IGV4aXRDb2RlID0gcGx1Z2lucy5zaGVsbGpzLmV4ZWMoY29tbWFuZEFyZykuY29kZTtcclxuICAgICAgICAgICAgaWYoZXhpdENvZGUgIT09IDAgJiYgaSA9PSByZXRyeUFyZyl7XHJcbiAgICAgICAgICAgICAgICBwcm9jZXNzLmV4aXQoMSk7XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZihleGl0Q29kZSA9PSAwKXtcclxuICAgICAgICAgICAgICAgIGkgPSByZXRyeUFyZy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yXG4gICAgICAgICAgICBsZXQgZXhpdENvZGU6bnVtYmVyID0gcGx1Z2lucy5zaGVsbGpzLmV4ZWMoXHJcbiAgICAgICAgICAgICAgICBcImJhc2ggLWMgXFxcInNvdXJjZSAvdXNyL2xvY2FsL252bS9udm0uc2ggJiZcIiArXHJcbiAgICAgICAgICAgICAgICBjb21tYW5kQXJnICtcclxuICAgICAgICAgICAgICAgIFwiXFxcIlwiXHJcbiAgICAgICAgICAgICkuY29kZTtcclxuICAgICAgICAgICAgaWYoZXhpdENvZGUgIT09IDAgJiYgaSA9PSByZXRyeUFyZyl7XHJcbiAgICAgICAgICAgICAgICBwcm9jZXNzLmV4aXQoMSk7XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZihleGl0Q29kZSA9PSAwKXtcclxuICAgICAgICAgICAgICAgIGkgPSByZXRyeUFyZyArIDE7XHJcbiAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy53YXJuKFwiU29tZXRoaW5nIHdlbnQgd3JvbmchIEV4aXQgQ29kZTogXCIgKyBleGl0Q29kZS50b1N0cmluZyk7XHJcbiAgICAgICAgICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy5pbmZvKFwiUmV0cnkgXCIgKyAoaSArIDEpLnRvU3RyaW5nICsgXCIgb2YgXCIgKyAgcmV0cnlBcmcudG9TdHJpbmcpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG4gICAgfSBlbHNlIHtcclxuICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy5sb2coXCJTaGVsbEV4ZWMgd291bGQgYmU6IFwiICsgY29tbWFuZEFyZy5ibHVlKVxyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgbGV0IGJhc2hCYXJlID0gKGNvbW1hbmRBcmcscmV0cnlBcmcgPSAyKSA9PiB7XHJcbiAgICBpZiAoIXByb2Nlc3MuZW52Lk5QTVRTX1RFU1Qpe1xyXG4gICAgICAgIGZvcihsZXQgaSA9IDA7IGkgPD0gcmV0cnlBcmc7IGkrKyl7XHJcbiAgICAgICAgICAgIGxldCBleGl0Q29kZTpudW1iZXIgPSBwbHVnaW5zLnNoZWxsanMuZXhlYyhjb21tYW5kQXJnKS5jb2RlO1xyXG4gICAgICAgICAgICBpZihleGl0Q29kZSAhPT0gMCAmJiBpID09IHJldHJ5QXJnKXtcclxuICAgICAgICAgICAgICAgIHByb2Nlc3MuZXhpdCgxKTtcclxuICAgICAgICAgICAgfSBlbHNlIGlmKGV4aXRDb2RlID09IDApe1xyXG4gICAgICAgICAgICAgICAgaSA9IHJldHJ5QXJnICsgMTtcclxuICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLndhcm4oXCJTb21ldGhpbmcgd2VudCB3cm9uZyEgRXhpdCBDb2RlOiBcIiArIGV4aXRDb2RlLnRvU3RyaW5nKTtcclxuICAgICAgICAgICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmluZm8oXCJSZXRyeSBcIiArIChpICsgMSkudG9TdHJpbmcgKyBcIiBvZiBcIiArICByZXRyeUFyZy50b1N0cmluZyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcIlNoZWxsRXhlYyB3b3VsZCBiZTogXCIgKyBjb21tYW5kQXJnLmJsdWUpXHJcbiAgICB9XHJcbn0iXX0=
|
||||
|
@ -3,7 +3,7 @@ import * as plugins from "./npmci.plugins";
|
||||
export let bash = (commandArg:string,retryArg = 2) => {
|
||||
if(!process.env.NPMTS_TEST){
|
||||
for (let i = 0; i <= retryArg; i++){
|
||||
let exitCode = plugins.shelljs.exec(
|
||||
let exitCode:number = plugins.shelljs.exec(
|
||||
"bash -c \"source /usr/local/nvm/nvm.sh &&" +
|
||||
commandArg +
|
||||
"\""
|
||||
@ -11,7 +11,10 @@ export let bash = (commandArg:string,retryArg = 2) => {
|
||||
if(exitCode !== 0 && i == retryArg){
|
||||
process.exit(1);
|
||||
} else if(exitCode == 0){
|
||||
i = retryArg + 1;
|
||||
i = retryArg + 1; // if everything works out ok retrials are not wanted
|
||||
} else {
|
||||
plugins.beautylog.warn("Something went wrong! Exit Code: " + exitCode.toString);
|
||||
plugins.beautylog.info("Retry " + (i + 1).toString + " of " + retryArg.toString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -19,14 +22,17 @@ export let bash = (commandArg:string,retryArg = 2) => {
|
||||
}
|
||||
}
|
||||
|
||||
export let bashBare = (commandArg,retryArg = 3) => {
|
||||
export let bashBare = (commandArg,retryArg = 2) => {
|
||||
if (!process.env.NPMTS_TEST){
|
||||
for(let i = 0; i <= retryArg; i++){
|
||||
let exitCode = plugins.shelljs.exec(commandArg).code;
|
||||
let exitCode:number = plugins.shelljs.exec(commandArg).code;
|
||||
if(exitCode !== 0 && i == retryArg){
|
||||
process.exit(1);
|
||||
} else if(exitCode == 0){
|
||||
i = retryArg + 1;
|
||||
i = retryArg + 1; // if everything works out ok retrials are not wanted
|
||||
} else {
|
||||
plugins.beautylog.warn("Something went wrong! Exit Code: " + exitCode.toString);
|
||||
plugins.beautylog.info("Retry " + (i + 1).toString + " of " + retryArg.toString);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -162,12 +162,12 @@ export let dockerBaseImage = function(dockerfileContentArg:string){
|
||||
export let dockerTag = function(repoArg:string,versionArg:string):string{
|
||||
let tagString:string;
|
||||
let registry = NpmciEnv.dockerRegistry;
|
||||
if(process.env.CI_BUILD_STAGE == "build" || process.env.CI_BUILD_STAGE == "test"){
|
||||
if(NpmciEnv.buildStage == "build" || NpmciEnv.buildStage == "test"){
|
||||
registry = "registry.gitlab.com";
|
||||
}
|
||||
let repo = repoArg;
|
||||
let version = versionArg;
|
||||
if(process.env.CI_BUILD_STAGE == "build" || process.env.CI_BUILD_STAGE == "test"){
|
||||
if(NpmciEnv.buildStage == "build" || NpmciEnv.buildStage == "test"){
|
||||
version = version + "_test";
|
||||
}
|
||||
tagString = registry + "/" + repo + ":" + version;
|
||||
|
@ -3,9 +3,9 @@ import * as plugins from "./npmci.plugins";
|
||||
import {GitRepo} from "smartstring";
|
||||
import {Dockerfile} from "./npmci.build.docker"
|
||||
|
||||
export let repo = new GitRepo(process.env.CI_BUILD_REPO);
|
||||
export let dockerTestTag:string;
|
||||
export let dockerReleaseTag:string;
|
||||
export let repo:GitRepo = new GitRepo(process.env.CI_BUILD_REPO);
|
||||
|
||||
export let buildStage:string = process.env.CI_BUILD_STAGE;
|
||||
|
||||
export let dockerRegistry; // will be set by npmci.prepare
|
||||
export let dockerFilesBuilt:Dockerfile[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user