error handling for aws
parent
e73975ab09
commit
d4594b55aa
|
|
@ -10,6 +10,7 @@ import { CloudRunnerSystem } from '../services/cloud-runner-system';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { CloudRunnerFolders } from '../services/cloud-runner-folders';
|
import { CloudRunnerFolders } from '../services/cloud-runner-folders';
|
||||||
|
import SharedWorkspaceLocking from '../services/shared-workspace-locking';
|
||||||
|
|
||||||
async function CreateParameters(overrides) {
|
async function CreateParameters(overrides) {
|
||||||
if (overrides) {
|
if (overrides) {
|
||||||
|
|
@ -76,6 +77,7 @@ describe('Cloud Runner Retain Workspace', () => {
|
||||||
expect(build2NotContainsNoLibraryMessage).toBeTruthy();
|
expect(build2NotContainsNoLibraryMessage).toBeTruthy();
|
||||||
}, 10000000);
|
}, 10000000);
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await SharedWorkspaceLocking.CleanupWorkspace(CloudRunner.lockedWorkspace || ``, CloudRunner.buildParameters);
|
||||||
if (
|
if (
|
||||||
fs.existsSync(`./cloud-runner-cache/${path.basename(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}`)
|
fs.existsSync(`./cloud-runner-cache/${path.basename(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)}`)
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue