jenkins - Deprecated legacy backend (#2050)

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin 2024-12-03 06:28:52 -08:00 committed by GitHub
parent 00f3ac095f
commit 3500d7108d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@backstage-community/plugin-jenkins-backend': patch
---
Deprecated `createRouter` and its router options in favour of the new backend system.

View File

@ -16,7 +16,7 @@ import { LoggerService } from '@backstage/backend-plugin-api';
import { PermissionAuthorizer } from '@backstage/plugin-permission-common';
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
// @public (undocumented)
// @public @deprecated (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @public
@ -142,7 +142,7 @@ export interface JenkinsInstanceConfig {
const jenkinsPlugin: BackendFeature;
export default jenkinsPlugin;
// @public (undocumented)
// @public @deprecated (undocumented)
export interface RouterOptions {
// (undocumented)
auth?: AuthService;

View File

@ -38,7 +38,10 @@ import {
LoggerService,
} from '@backstage/backend-plugin-api';
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export interface RouterOptions {
logger: LoggerService;
jenkinsInfoProvider: JenkinsInfoProvider;
@ -48,7 +51,10 @@ export interface RouterOptions {
httpAuth?: HttpAuthService;
}
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {