Excluding the fix from this PR
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
Added a documentation how to use checkpoints + the fix when to clean the workspace
|
||||
Added a documentation how to use checkpoints
|
||||
|
||||
@@ -508,11 +508,11 @@ export class NunjucksWorkflowRunner implements WorkflowRunner {
|
||||
|
||||
const output = this.render(task.spec.output, context, renderTemplate);
|
||||
await taskTrack.markSuccessful();
|
||||
await task.cleanWorkspace?.();
|
||||
|
||||
return { output };
|
||||
} finally {
|
||||
if (workspacePath) {
|
||||
await task.cleanWorkspace?.();
|
||||
await fs.remove(workspacePath);
|
||||
}
|
||||
}
|
||||
@@ -554,13 +554,10 @@ function scaffoldingTracker() {
|
||||
step: TaskStep,
|
||||
action: TemplateAction<JsonObject>,
|
||||
) {
|
||||
await task.emitLog(
|
||||
`Skipping because ${action.id} does not support dry-run`,
|
||||
{
|
||||
stepId: step.id,
|
||||
status: 'skipped',
|
||||
},
|
||||
);
|
||||
task.emitLog(`Skipping because ${action.id} does not support dry-run`, {
|
||||
stepId: step.id,
|
||||
status: 'skipped',
|
||||
});
|
||||
}
|
||||
|
||||
async function markSuccessful() {
|
||||
|
||||
Reference in New Issue
Block a user