unity-builder/src/model/cloud-runner/services/cloud-runner-build-command-...

13 lines
360 B
TypeScript
Raw Normal View History

2021-12-31 17:52:01 +00:00
import { BuildParameters, Input } from '../..';
2021-12-29 16:28:42 +00:00
export class CloudRunnerBuildCommandProcessor {
public static ProcessCommands(commands: string, buildParameters: BuildParameters): string {
2021-12-29 17:04:06 +00:00
return `echo "---"
2021-12-31 17:52:01 +00:00
${Input.cloudRunnerTests ? '' : '#'} printenv
2021-12-29 17:04:06 +00:00
echo "start"
${commands}
2021-12-31 04:04:21 +00:00
echo "end---${buildParameters.logId}"
2021-12-29 17:04:06 +00:00
`;
2021-12-29 16:28:42 +00:00
}
}