mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-19 14:36:48 -07:00
PR feedback
This commit is contained in:
+3
-4
@@ -3912,10 +3912,9 @@ class KubernetesJobSpecFactory {
|
|||||||
preStop: {
|
preStop: {
|
||||||
exec: {
|
exec: {
|
||||||
command: [
|
command: [
|
||||||
`wait 60s;
|
'/bin/sh',
|
||||||
cd /data/builder/action/steps;
|
'-c',
|
||||||
chmod +x /return_license.sh;
|
'sleep 60; cd /data/builder/action/steps && chmod +x /steps/return_license.sh 2>/dev/null || true; /steps/return_license.sh 2>/dev/null || true',
|
||||||
/return_license.sh;`,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -119,7 +119,10 @@ mkdir -p /github/workspace/cloud-runner-cache
|
|||||||
mkdir -p /data/cache
|
mkdir -p /data/cache
|
||||||
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
||||||
${CommandHookService.ApplyHooksToCommands(commands, this.buildParameters)}
|
${CommandHookService.ApplyHooksToCommands(commands, this.buildParameters)}
|
||||||
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
|
# Only copy cache directory, exclude retained workspaces to avoid running out of disk space
|
||||||
|
if [ -d "${sharedFolder}cache" ]; then
|
||||||
|
cp -a ${sharedFolder}cache/. /github/workspace/cloud-runner-cache/cache/ || true
|
||||||
|
fi
|
||||||
`;
|
`;
|
||||||
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
|
|||||||
@@ -118,10 +118,9 @@ class KubernetesJobSpecFactory {
|
|||||||
preStop: {
|
preStop: {
|
||||||
exec: {
|
exec: {
|
||||||
command: [
|
command: [
|
||||||
`wait 60s;
|
'/bin/sh',
|
||||||
cd /data/builder/action/steps;
|
'-c',
|
||||||
chmod +x /return_license.sh;
|
'sleep 60; cd /data/builder/action/steps && chmod +x /steps/return_license.sh 2>/dev/null || true; /steps/return_license.sh 2>/dev/null || true',
|
||||||
/return_license.sh;`,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user