log abandonment url

pull/1358/head
Aayush 1 year ago
parent b15cec1fbd
commit 2b966d15c9
No known key found for this signature in database

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

@ -46,7 +46,9 @@ async function reportBuildCompleted() {
async function reportBuildAbandoned() {
try {
const client = await getBlacksmithHttpClient();
const response = await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
const abandonURL = `/${stateHelper.blacksmithBuildTaskId}/abandon`;
core.info(`Abandoning Blacksmith build: ${abandonURL}`);
const response = await client.post(abandonURL);
core.info(`Docker build abandoned, tearing down Blacksmith builder for ${stateHelper.blacksmithBuildTaskId}: ${JSON.stringify(response.data)}`);
} catch (error) {
core.warning('Error abandoning Blacksmith build:', error);

Loading…
Cancel
Save