Custom step file support

pull/437/head
Frostebite 2022-10-10 21:58:25 +01:00
parent f7932ef20a
commit a0891bdc4a
3 changed files with 17 additions and 11 deletions

13
dist/index.js vendored
View File

@ -5326,13 +5326,14 @@ class BuildAutomationWorkflow {
const cloneBuilderCommands = `if [ -e "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}" ] && [ -e "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathAbsolute, `.git`))}" ]; then echo "Builder Already Exists!"; else ${commands}; fi`; const cloneBuilderCommands = `if [ -e "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}" ] && [ -e "${cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathAbsolute, `.git`))}" ]; then echo "Builder Already Exists!"; else ${commands}; fi`;
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
echo "game ci cloud runner clone" echo "game ci cloud runner clone"
tree -L 2 ./data/ ${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
${retainedWorkspaceCommands} ${retainedWorkspaceCommands}
tree -L 2 ./data/ ${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
${cloneBuilderCommands} ${cloneBuilderCommands}
tree -L 2 ./data/ ${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
echo "game ci cloud runner bootstrap" echo "game ci cloud runner bootstrap"
node ${builderPath} -m remote-cli-pre-build`; node ${builderPath} -m remote-cli-pre-build
${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}`;
} }
// ToDo: Replace with a very simple "node ${builderPath} -m build-cli" to run the scripts below without enlarging the request size // ToDo: Replace with a very simple "node ${builderPath} -m build-cli" to run the scripts below without enlarging the request size
static BuildCommands(builderPath) { static BuildCommands(builderPath) {
@ -5350,7 +5351,9 @@ class BuildAutomationWorkflow {
/entrypoint.sh /entrypoint.sh
echo "game ci cloud runner push library to cache" echo "game ci cloud runner push library to cache"
chmod +x ${builderPath} chmod +x ${builderPath}
node ${builderPath} -m remote-cli-post-build`; ${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
node ${builderPath} -m remote-cli-post-build
${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}`;
} }
} }
exports.BuildAutomationWorkflow = BuildAutomationWorkflow; exports.BuildAutomationWorkflow = BuildAutomationWorkflow;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -129,13 +129,14 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 return `export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
echo "game ci cloud runner clone" echo "game ci cloud runner clone"
tree -L 2 ./data/ ${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
${retainedWorkspaceCommands} ${retainedWorkspaceCommands}
tree -L 2 ./data/ ${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
${cloneBuilderCommands} ${cloneBuilderCommands}
tree -L 2 ./data/ ${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
echo "game ci cloud runner bootstrap" echo "game ci cloud runner bootstrap"
node ${builderPath} -m remote-cli-pre-build`; node ${builderPath} -m remote-cli-pre-build
${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}`;
} }
// ToDo: Replace with a very simple "node ${builderPath} -m build-cli" to run the scripts below without enlarging the request size // ToDo: Replace with a very simple "node ${builderPath} -m build-cli" to run the scripts below without enlarging the request size
@ -155,6 +156,8 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
/entrypoint.sh /entrypoint.sh
echo "game ci cloud runner push library to cache" echo "game ci cloud runner push library to cache"
chmod +x ${builderPath} chmod +x ${builderPath}
node ${builderPath} -m remote-cli-post-build`; ${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}
node ${builderPath} -m remote-cli-post-build
${CloudRunner.buildParameters.cloudRunnerIntegrationTests ? `tree -L 2 ./data/` : ``}`;
} }
} }