Skip to content

Commit

Permalink
chore: update plugin-scaffolder-node version (janus-idp#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mareklibra authored Mar 27, 2024
1 parent 836e161 commit 4412378
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/orchestrator-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"@backstage/plugin-events-backend": "^0.2.22",
"@backstage/plugin-events-node": "^0.2.22",
"@backstage/plugin-scaffolder-backend": "^1.21.3",
"@backstage/plugin-scaffolder-common": "^1.5.0",
"@backstage/plugin-scaffolder-node": "^0.3.3",
"@backstage/plugin-scaffolder-common": "^1.5.1",
"@backstage/plugin-scaffolder-node": "^0.4.1",
"@backstage/types": "^1.1.1",
"@janus-idp/backstage-plugin-orchestrator-common": "1.6.0",
"@octokit/rest": "^19.0.3",
Expand Down
12 changes: 11 additions & 1 deletion plugins/orchestrator-backend/src/service/ScaffolderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ScaffolderService {
);
} catch (err) {
this.logger.error(
`Error getting workingDirecotury to execute action ${actionExecutionContext.actionId}`,
`Error getting workingDirectory to execute action ${actionExecutionContext.actionId}`,
err,
);
throw err;
Expand All @@ -95,6 +95,16 @@ export class ScaffolderService {
output(name: string, value: JsonValue) {
stepOutput[name] = value;
},
getInitiatorCredentials: async () => {
return {
$$type: '@backstage/BackstageCredentials',
principal: 'mock-principal',
};
},
checkpoint: async (key, fn) => {
this.logger.info(`Orchestrator ScaffolderService checkpoint ${key}`);
return fn();
},
};
await action.handler(mockContext);

Expand Down

0 comments on commit 4412378

Please sign in to comment.