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