Do not serialize custom job parameter
parent
818ce19fd8
commit
cf95b5e11d
|
|
@ -3656,7 +3656,7 @@ class LocalDockerCloudRunner {
|
||||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, entrypointFilePath, content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `${workspace}/${entrypointFilePath}`, content, {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
@ -4794,6 +4794,9 @@ class TaskParameterSerializer {
|
||||||
// buildParameters[element] = base64.decode(buildParameters[element]);
|
// buildParameters[element] = base64.decode(buildParameters[element]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (JSON.stringify(buildParameters) === JSON.stringify({})) {
|
||||||
|
throw new Error(`Build parameters from environment are empty`);
|
||||||
|
}
|
||||||
return buildParameters;
|
return buildParameters;
|
||||||
}
|
}
|
||||||
static readInput() {
|
static readInput() {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -89,16 +89,23 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
||||||
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, entrypointFilePath, content, {
|
await Docker.run(
|
||||||
listeners: {
|
image,
|
||||||
stdout: (data: Buffer) => {
|
{ workspace, actionFolder, ...this.buildParameters },
|
||||||
myOutput += data.toString();
|
false,
|
||||||
},
|
`${workspace}/${entrypointFilePath}`,
|
||||||
stderr: (data: Buffer) => {
|
content,
|
||||||
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
{
|
||||||
|
listeners: {
|
||||||
|
stdout: (data: Buffer) => {
|
||||||
|
myOutput += data.toString();
|
||||||
|
},
|
||||||
|
stderr: (data: Buffer) => {
|
||||||
|
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
);
|
||||||
|
|
||||||
return myOutput;
|
return myOutput;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,10 @@ export class TaskParameterSerializer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (JSON.stringify(buildParameters) === JSON.stringify({})) {
|
||||||
|
throw new Error(`Build parameters from environment are empty`);
|
||||||
|
}
|
||||||
|
|
||||||
return buildParameters;
|
return buildParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue