better named tests and log local-docker params
parent
04c03528ea
commit
62949bc520
|
|
@ -3629,24 +3629,23 @@ class LocalDockerCloudRunner {
|
||||||
cloud_runner_logger_1.default.log(buildGuid);
|
cloud_runner_logger_1.default.log(buildGuid);
|
||||||
cloud_runner_logger_1.default.log(commands);
|
cloud_runner_logger_1.default.log(commands);
|
||||||
const { workspace, actionFolder } = model_1.Action;
|
const { workspace, actionFolder } = model_1.Action;
|
||||||
let myOutput = '';
|
const content = [];
|
||||||
const content = [
|
for (const x of secrets) {
|
||||||
...secrets.map((x) => {
|
content[x.EnvironmentVariable] = x.ParameterValue;
|
||||||
secrets[x.EnvironmentVariable] = x.ParameterValue;
|
}
|
||||||
return;
|
for (const x of environment) {
|
||||||
}),
|
content[x.name] = x.value;
|
||||||
...environment.map((x) => {
|
}
|
||||||
environment[x.name] = x.value;
|
|
||||||
return;
|
|
||||||
}),
|
|
||||||
];
|
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
core.info(JSON.stringify(content, undefined, 4));
|
||||||
|
core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
|
core.info(JSON.stringify(environment, undefined, 4));
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
if (content[index] === undefined) {
|
if (content[index] === undefined) {
|
||||||
delete content[index];
|
delete content[index];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let myOutput = '';
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, commands, content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, commands, content, {
|
||||||
listeners: {
|
listeners: {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -61,26 +61,23 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
CloudRunnerLogger.log(commands);
|
CloudRunnerLogger.log(commands);
|
||||||
|
|
||||||
const { workspace, actionFolder } = Action;
|
const { workspace, actionFolder } = Action;
|
||||||
let myOutput = '';
|
const content = [];
|
||||||
const content = [
|
for (const x of secrets) {
|
||||||
...secrets.map((x) => {
|
content[x.EnvironmentVariable] = x.ParameterValue;
|
||||||
secrets[x.EnvironmentVariable] = x.ParameterValue;
|
}
|
||||||
|
for (const x of environment) {
|
||||||
return;
|
content[x.name] = x.value;
|
||||||
}),
|
}
|
||||||
...environment.map((x) => {
|
|
||||||
environment[x.name] = x.value;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}),
|
|
||||||
];
|
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
core.info(JSON.stringify(content, undefined, 4));
|
||||||
|
core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
|
core.info(JSON.stringify(environment, undefined, 4));
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
if (content[index] === undefined) {
|
if (content[index] === undefined) {
|
||||||
delete content[index];
|
delete content[index];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let myOutput = '';
|
||||||
|
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, commands, content, {
|
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, commands, content, {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue