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