Skip to content

Update plugin to new backstage backend system #2

@TheDukeDK

Description

@TheDukeDK

I am following your instructions to install the plugin. But step three(3) gives an error. I assume this is because I am using Backstage version 1.33.0 which supports the new backend system.

I tried to get around this with the following but it doesn't seem to work.

import scaffolderModuleCodacy from '@codacy/backstage-plugin';

// Codacy
backend.add(scaffolderModuleCodacy());

The step errors with.

2024-12-18T10:52:51.000Z Beginning step Add Repository to Codacy
49 2024-12-18T10:52:51.000Z Error: Failed to add repository to Codacy: Bad Request
50    at Object.handler (/home/[email protected]/git/developer-experience/developer-portal-v2/node_modules/@codacy/backstage-plugin/src/actions/codacy.ts:38:15)
51    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
52    at async NunjucksWorkflowRunner.executeStep (/home/[email protected]/git/developer-experience/developer-portal-v2/node_modules/@backstage/plugin-scaffolder-backend/src/scaffolder/tasks/NunjucksWorkflowRunner.ts:368:9)
53    at async NunjucksWorkflowRunner.execute (/home/[email protected]/git/developer-experience/developer-portal-v2/node_modules/@backstage/plugin-scaffolder-backend/src/scaffolder/tasks/NunjucksWorkflowRunner.ts:504:9)
54    at async TaskWorker.runOneTask (/home/[email protected]/git/developer-experience/developer-portal-v2/node_modules/@backstage/plugin-scaffolder-backend/src/scaffolder/tasks/TaskWorker.ts:176:26)
55    at async run (/home/[email protected]/git/developer-experience/developer-portal-v2/node_modules/p-queue/dist/index.js:163:29)

The action doesn't have a schema either.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions