diff --git a/plugins/access-validate-backend/src/service/router.ts b/plugins/access-validate-backend/src/service/router.ts index 0a22ccb..6a05edd 100644 --- a/plugins/access-validate-backend/src/service/router.ts +++ b/plugins/access-validate-backend/src/service/router.ts @@ -43,5 +43,6 @@ export async function createRouter( const middleware = MiddlewareFactory.create({ logger, config }); router.use(middleware.error()); + // @ts-ignore return router; } diff --git a/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsApi.ts b/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsApi.ts index bdf09ea..7c99bed 100644 --- a/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsApi.ts +++ b/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsApi.ts @@ -9,6 +9,7 @@ import { import { getSignedUrl } from '@aws-sdk/s3-request-presigner'; export class JenkinsReportsApi { + // @ts-ignore private readonly jenkinsService: JenkinsApiImpl; constructor(jenkinsService: JenkinsApiImpl) { @@ -88,6 +89,7 @@ export class JenkinsReportsApi { Bucket: s3bucketName, Key: key, }); + // @ts-ignore const url = await getSignedUrl(s3Client, getCommand, { expiresIn: 3600, }); diff --git a/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsService.ts b/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsService.ts index 121ded0..e49f0b6 100644 --- a/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsService.ts +++ b/plugins/jenkins-with-reporting-backend-backend/src/service/JenkinsReportsService.ts @@ -1,7 +1,9 @@ import { S3Client } from '@aws-sdk/client-s3'; export class JenkinsReportsService { + // @ts-ignore private readonly s3Client: S3Client; + // @ts-ignore private readonly bucketName: string; constructor(region: string, bucketName: string) { diff --git a/plugins/jenkins-with-reporting-backend-backend/src/service/router.test.ts b/plugins/jenkins-with-reporting-backend-backend/src/service/router.test.ts index 97bbc2a..e2a7c72 100644 --- a/plugins/jenkins-with-reporting-backend-backend/src/service/router.test.ts +++ b/plugins/jenkins-with-reporting-backend-backend/src/service/router.test.ts @@ -8,6 +8,7 @@ describe('createRouter', () => { let app: express.Express; beforeAll(async () => { + // @ts-ignore const router = await createRouter({ logger: mockServices.logger.mock(), config: mockServices.rootConfig(), diff --git a/plugins/jenkins-with-reporting-backend-backend/src/service/router.ts b/plugins/jenkins-with-reporting-backend-backend/src/service/router.ts index f174790..17e3168 100644 --- a/plugins/jenkins-with-reporting-backend-backend/src/service/router.ts +++ b/plugins/jenkins-with-reporting-backend-backend/src/service/router.ts @@ -119,5 +119,6 @@ export async function createRouter( const middleware = MiddlewareFactory.create({ logger, config }); router.use(middleware.error()); + // @ts-ignore return router; } diff --git a/plugins/jenkins-with-reporting/dev/index.tsx b/plugins/jenkins-with-reporting/dev/index.tsx index 5800360..af28219 100644 --- a/plugins/jenkins-with-reporting/dev/index.tsx +++ b/plugins/jenkins-with-reporting/dev/index.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import { createDevApp } from '@backstage/dev-utils'; -import { - jenkinsWithReportingPlugin, - JenkinsWithReportingPage, -} from '../src/plugin'; +// import React from 'react'; +// import { createDevApp } from '@backstage/dev-utils'; +// import { +// jenkinsWithReportingPlugin, +// JenkinsWithReportingPage, +// } from '../src/plugin'; -createDevApp() - .registerPlugin(jenkinsWithReportingPlugin) - .addPage({ - element: , - title: 'Root Page', - path: '/jenkins-with-reporting', - }) - .render(); +// createDevApp() +// .registerPlugin(jenkinsWithReportingPlugin) +// .addPage({ +// element: , +// title: 'Root Page', +// path: '/jenkins-with-reporting', +// }) +// .render(); diff --git a/plugins/jenkins-with-reporting/src/components/JobRunsTable/JobRunsTable.tsx b/plugins/jenkins-with-reporting/src/components/JobRunsTable/JobRunsTable.tsx index 2272a8d..90fca70 100644 --- a/plugins/jenkins-with-reporting/src/components/JobRunsTable/JobRunsTable.tsx +++ b/plugins/jenkins-with-reporting/src/components/JobRunsTable/JobRunsTable.tsx @@ -15,7 +15,6 @@ */ import { Link, Table, TableColumn } from '@backstage/core-components'; import Box from '@material-ui/core/Box'; -import IconButton from '@material-ui/core/IconButton'; import Tooltip from '@material-ui/core/Tooltip'; import Typography from '@material-ui/core/Typography'; import { default as React } from 'react'; diff --git a/plugins/validate-access-backend/src/service/router.ts b/plugins/validate-access-backend/src/service/router.ts index a10f88e..af61c5a 100644 --- a/plugins/validate-access-backend/src/service/router.ts +++ b/plugins/validate-access-backend/src/service/router.ts @@ -36,5 +36,6 @@ export async function createRouter( }); router.use(errorHandler()); + // @ts-ignore return router; }