Fix s3 command for workspace locking
parent
33eb514ce6
commit
f72739254b
|
|
@ -641,7 +641,7 @@ class SharedWorkspaceLocking {
|
|||
// this job + date
|
||||
const file = `_lock_${cloud_runner_1.default.buildParameters.buildGuid}_${Date.now()}`;
|
||||
fs.writeFileSync(file, '');
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`aws s3 cp ./${file} ./game-ci-test-storage/locks/${workspace}`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`aws s3 cp ./${file} s3://game-ci-test-storage/locks/${workspace}`);
|
||||
fs.rmSync(file);
|
||||
return SharedWorkspaceLocking.HasWorkspaceLock(workspace);
|
||||
});
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -23,7 +23,7 @@ export class SharedWorkspaceLocking {
|
|||
// this job + date
|
||||
const file = `_lock_${CloudRunner.buildParameters.buildGuid}_${Date.now()}`;
|
||||
fs.writeFileSync(file, '');
|
||||
await CloudRunnerSystem.Run(`aws s3 cp ./${file} ./game-ci-test-storage/locks/${workspace}`);
|
||||
await CloudRunnerSystem.Run(`aws s3 cp ./${file} s3://game-ci-test-storage/locks/${workspace}`);
|
||||
fs.rmSync(file);
|
||||
|
||||
return SharedWorkspaceLocking.HasWorkspaceLock(workspace);
|
||||
|
|
|
|||
Loading…
Reference in New Issue