diff --git a/dist/npmci.bash.d.ts b/dist/npmci.bash.d.ts index 3dd044a..f3869bf 100644 --- a/dist/npmci.bash.d.ts +++ b/dist/npmci.bash.d.ts @@ -10,10 +10,6 @@ export declare let yarnAvailable: plugins.q.Deferred; * @param retryArg - The retryArg: 0 to any positive number will retry, -1 will always succeed, -2 will return undefined */ export declare let bash: (commandArg: string, retryArg?: number, bareArg?: boolean) => Promise; -/** - * bashBare allows usage of bash without sourcing any files like nvm - */ -export declare let bashBare: (commandArg: string, retryArg?: number) => Promise; /** * bashNoError allows executing stuff without throwing an error */ diff --git a/dist/npmci.bash.js b/dist/npmci.bash.js index 1308434..a056ad8 100644 --- a/dist/npmci.bash.js +++ b/dist/npmci.bash.js @@ -73,7 +73,7 @@ exports.bash = (commandArg, retryArg = 2, bareArg = false) => __awaiter(this, vo execResult = yield npmciSmartshell.exec(commandArg); } else { - execResult = yield plugins.smartshell.exec(commandArg); + execResult = yield npmciSmartshell.exec(commandArg); } // determine how bash reacts to error and success if (execResult.exitCode !== 0 && i === retryArg) { @@ -101,16 +101,10 @@ exports.bash = (commandArg, retryArg = 2, bareArg = false) => __awaiter(this, vo } return execResult.stdout; }); -/** - * bashBare allows usage of bash without sourcing any files like nvm - */ -exports.bashBare = (commandArg, retryArg = 2) => __awaiter(this, void 0, void 0, function* () { - return yield exports.bash(commandArg, retryArg, true); -}); /** * bashNoError allows executing stuff without throwing an error */ exports.bashNoError = (commandArg) => __awaiter(this, void 0, void 0, function* () { return yield exports.bash(commandArg, -1); }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYmFzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmJhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJDQUEwQztBQUMxQyx1Q0FBc0M7QUFFdEMsaUNBQWdDO0FBRWhDOztHQUVHO0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FBUSxFQUFFLENBQUM7WUFDWCxNQUFNLEVBQUUsWUFBWTtTQUNyQixDQUFBO0lBQ0gsQ0FBQztJQUNELE1BQU0sQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFBO0FBQzFCLENBQUMsQ0FBQSxDQUFBO0FBRUQ7O0dBRUc7QUFDUSxRQUFBLFdBQVcsR0FBRyxDQUFPLFVBQWtCO0lBQ2hELE1BQU0sQ0FBQyxNQUFNLFlBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNuQyxDQUFDLENBQUEsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/npmci.build.docker.js b/dist/npmci.build.docker.js index 939c522..74bc4c6 100644 --- a/dist/npmci.build.docker.js +++ b/dist/npmci.build.docker.js @@ -159,7 +159,7 @@ class Dockerfile { return __awaiter(this, void 0, void 0, function* () { plugins.beautylog.info('now building Dockerfile for ' + this.cleanTag); let buildCommand = `docker build -t ${this.buildTag} -f ${this.filePath} .`; - yield npmci_bash_1.bashBare(buildCommand); + yield npmci_bash_1.bash(buildCommand); NpmciEnv.dockerFilesBuilt.push(this); return; }); @@ -172,18 +172,18 @@ class Dockerfile { return __awaiter(this, void 0, void 0, function* () { switch (stageArg) { case 'release': - yield npmci_bash_1.bashBare(`docker tag ${this.buildTag} ${this.releaseTag}`); - yield npmci_bash_1.bashBare(`docker push ${this.releaseTag}`); + yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.releaseTag}`); + yield npmci_bash_1.bash(`docker push ${this.releaseTag}`); // if release registry is different from gitlab if (NpmciEnv.dockerRegistry !== 'registry.gitlab.com') { - yield npmci_bash_1.bashBare(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`); - yield npmci_bash_1.bashBare(`docker push ${this.gitlabReleaseTag}`); + yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`); + yield npmci_bash_1.bash(`docker push ${this.gitlabReleaseTag}`); } break; case 'test': default: - yield npmci_bash_1.bashBare(`docker tag ${this.buildTag} ${this.gitlabTestTag}`); - yield npmci_bash_1.bashBare(`docker push ${this.gitlabTestTag}`); + yield npmci_bash_1.bash(`docker tag ${this.buildTag} ${this.gitlabTestTag}`); + yield npmci_bash_1.bash(`docker push ${this.gitlabTestTag}`); break; } }); @@ -195,8 +195,8 @@ class Dockerfile { pull(registryArg) { return __awaiter(this, void 0, void 0, function* () { let pullTag = this.gitlabTestTag; - yield npmci_bash_1.bashBare('docker pull ' + pullTag); - yield npmci_bash_1.bashBare('docker tag ' + pullTag + ' ' + this.buildTag); + yield npmci_bash_1.bash('docker pull ' + pullTag); + yield npmci_bash_1.bash('docker tag ' + pullTag + ' ' + this.buildTag); }); } ; @@ -209,12 +209,12 @@ class Dockerfile { let testFileExists = plugins.smartfile.fs.fileExistsSync(testFile); if (testFileExists) { // run tests - yield npmci_bash_1.bashBare('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test'); - yield npmci_bash_1.bashBare('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh'); - yield npmci_bash_1.bashBare('docker commit npmci_test_container npmci_test_image'); - yield npmci_bash_1.bashBare('docker run npmci_test_image sh /npmci_test/test.sh'); - yield npmci_bash_1.bashBare('docker rm npmci_test_container'); - yield npmci_bash_1.bashBare('docker rmi --force npmci_test_image'); + yield npmci_bash_1.bash('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test'); + yield npmci_bash_1.bash('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh'); + yield npmci_bash_1.bash('docker commit npmci_test_container npmci_test_image'); + yield npmci_bash_1.bash('docker run npmci_test_image sh /npmci_test/test.sh'); + yield npmci_bash_1.bash('docker rm npmci_test_container'); + yield npmci_bash_1.bash('docker rmi --force npmci_test_image'); } else { plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!'); @@ -227,7 +227,7 @@ class Dockerfile { */ getId() { return __awaiter(this, void 0, void 0, function* () { - let containerId = yield npmci_bash_1.bashBare('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag); + let containerId = yield npmci_bash_1.bash('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag); return containerId; }); } @@ -285,4 +285,4 @@ exports.cleanTagsArrayFunction = function (dockerfileArrayArg, trackingArrayArg) }); return cleanTagsArray; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuYnVpbGQuZG9ja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuYnVpbGQuZG9ja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSwyQ0FBMEM7QUFDMUMsdUNBQXNDO0FBQ3RDLHdDQUF1QztBQUN2Qyw2Q0FBdUM7QUFFdkM7O0dBRUc7QUFDUSxRQUFBLEtBQUssR0FBRztJQUNqQixPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyw2QkFBNkIsQ0FBQyxDQUFBO0lBQ3BELE1BQU0sdUJBQWUsRUFBRTtTQUNwQixJQUFJLENBQUMsdUJBQWUsQ0FBQztTQUNyQixJQUFJLENBQUMsc0JBQWMsQ0FBQztTQUNwQixJQUFJLENBQUMsd0JBQWdCLENBQUM7U0FDdEIsSUFBSSxDQUFDLHVCQUFlLENBQUMsQ0FBQTtBQUMxQixDQUFDLENBQUEsQ0FBQTtBQUVEOzs7R0FHRztBQUNRLFFBQUEsZUFBZSxHQUFHO0lBQzNCLElBQUksUUFBUSxHQUFHLE1BQU0sT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsWUFBWSxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsYUFBYSxDQUFDLENBQUE7SUFFaEYsOEJBQThCO0lBQzlCLElBQUksb0JBQW9CLEdBQWlCLEVBQUUsQ0FBQTtJQUMzQyxPQUFPLENBQUMsU0FBUyxDQ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BQUMsVUFBVSxhQUFhO1FBQ2hELEVBQUUsQ0FBQyxDQUFDLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDbkQsY0FBYyxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsUUFBUSxDQUFDLENBQUE7UUFDN0MsQ0FBQztJQUNILENBQUMsQ0FBQyxDQUFBO0lBQ0YsTUFBTSxDQUFDLGNBQWMsQ0FBQTtBQUN2QixDQUFDLENBQUEifQ== \ No newline at end of file diff --git a/ts/npmci.bash.ts b/ts/npmci.bash.ts index 5fbfaee..ba95c5d 100644 --- a/ts/npmci.bash.ts +++ b/ts/npmci.bash.ts @@ -72,7 +72,7 @@ export let bash = async (commandArg: string, retryArg: number = 2, bareArg: bool if (!bareArg) { execResult = await npmciSmartshell.exec(commandArg) } else { - execResult = await plugins.smartshell.exec(commandArg) + execResult = await npmciSmartshell.exec(commandArg) } // determine how bash reacts to error and success @@ -99,13 +99,6 @@ export let bash = async (commandArg: string, retryArg: number = 2, bareArg: bool return execResult.stdout } -/** - * bashBare allows usage of bash without sourcing any files like nvm - */ -export let bashBare = async (commandArg: string, retryArg: number = 2): Promise => { - return await bash(commandArg, retryArg, true) -} - /** * bashNoError allows executing stuff without throwing an error */ diff --git a/ts/npmci.build.docker.ts b/ts/npmci.build.docker.ts index 3e60ad0..d0111d1 100644 --- a/ts/npmci.build.docker.ts +++ b/ts/npmci.build.docker.ts @@ -1,7 +1,7 @@ import * as plugins from './npmci.plugins' import * as paths from './npmci.paths' import * as NpmciEnv from './npmci.env' -import { bashBare } from './npmci.bash' +import { bash } from './npmci.bash' /** * builds a cwd of Dockerfiles by triggering a promisechain @@ -167,7 +167,7 @@ export class Dockerfile { async build () { plugins.beautylog.info('now building Dockerfile for ' + this.cleanTag) let buildCommand = `docker build -t ${this.buildTag} -f ${this.filePath} .` - await bashBare(buildCommand) + await bash(buildCommand) NpmciEnv.dockerFilesBuilt.push(this) return }; @@ -178,19 +178,19 @@ export class Dockerfile { async push(stageArg) { switch (stageArg) { case 'release': - await bashBare(`docker tag ${this.buildTag} ${this.releaseTag}`) - await bashBare(`docker push ${this.releaseTag}`) + await bash(`docker tag ${this.buildTag} ${this.releaseTag}`) + await bash(`docker push ${this.releaseTag}`) // if release registry is different from gitlab if (NpmciEnv.dockerRegistry !== 'registry.gitlab.com') { - await bashBare(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`) - await bashBare(`docker push ${this.gitlabReleaseTag}`) + await bash(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`) + await bash(`docker push ${this.gitlabReleaseTag}`) } break case 'test': default: - await bashBare(`docker tag ${this.buildTag} ${this.gitlabTestTag}`) - await bashBare(`docker push ${this.gitlabTestTag}`) + await bash(`docker tag ${this.buildTag} ${this.gitlabTestTag}`) + await bash(`docker push ${this.gitlabTestTag}`) break } }; @@ -200,8 +200,8 @@ export class Dockerfile { */ async pull(registryArg: string) { let pullTag = this.gitlabTestTag - await bashBare('docker pull ' + pullTag) - await bashBare('docker tag ' + pullTag + ' ' + this.buildTag) + await bash('docker pull ' + pullTag) + await bash('docker tag ' + pullTag + ' ' + this.buildTag) }; /** @@ -212,12 +212,12 @@ export class Dockerfile { let testFileExists: boolean = plugins.smartfile.fs.fileExistsSync(testFile) if (testFileExists) { // run tests - await bashBare('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test') - await bashBare('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh') - await bashBare('docker commit npmci_test_container npmci_test_image') - await bashBare('docker run npmci_test_image sh /npmci_test/test.sh') - await bashBare('docker rm npmci_test_container') - await bashBare('docker rmi --force npmci_test_image') + await bash('docker run --name npmci_test_container ' + this.buildTag + ' mkdir /npmci_test') + await bash('docker cp ' + testFile + ' npmci_test_container:/npmci_test/test.sh') + await bash('docker commit npmci_test_container npmci_test_image') + await bash('docker run npmci_test_image sh /npmci_test/test.sh') + await bash('docker rm npmci_test_container') + await bash('docker rmi --force npmci_test_image') } else { plugins.beautylog.warn('skipping tests for ' + this.cleanTag + ' because no testfile was found!') } @@ -227,7 +227,7 @@ export class Dockerfile { * gets the id of a Dockerfile */ async getId() { - let containerId = await bashBare('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag) + let containerId = await bash('docker inspect --type=image --format=\"{{.Id}}\" ' + this.buildTag) return containerId }; }