chore: clean up of test variables
Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
'@backstage/plugin-cicd-statistics-module-gitlab': minor
|
||||
---
|
||||
|
||||
Will update this once the PR is ready to be merged
|
||||
Created a module to extract the CI/CD statistics from a Gitlab repository.
|
||||
Read the `README.md` in the `cicd-statistics-module-gitlab` plugin folder on how to set it up.
|
||||
|
||||
@@ -33,10 +33,7 @@ import {
|
||||
createApiFactory,
|
||||
errorApiRef,
|
||||
githubAuthApiRef,
|
||||
gitlabAuthApiRef,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { cicdStatisticsApiRef } from '@backstage/plugin-cicd-statistics';
|
||||
import { CicdStatisticsApiGitlab } from '@backstage/plugin-cicd-statistics-module-gitlab';
|
||||
|
||||
export const apis: AnyApiFactory[] = [
|
||||
createApiFactory({
|
||||
@@ -65,12 +62,6 @@ export const apis: AnyApiFactory[] = [
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
createApiFactory({
|
||||
api: cicdStatisticsApiRef,
|
||||
deps: { gitlabAuthApi: gitlabAuthApiRef },
|
||||
factory({ gitlabAuthApi }) {
|
||||
return new CicdStatisticsApiGitlab(gitlabAuthApi);
|
||||
},
|
||||
}),
|
||||
|
||||
createApiFactory(costInsightsApiRef, new ExampleCostInsightsClient()),
|
||||
];
|
||||
|
||||
@@ -136,7 +136,6 @@ import {
|
||||
EntityNewRelicDashboardCard,
|
||||
} from '@backstage/plugin-newrelic-dashboard';
|
||||
import { EntityGoCdContent, isGoCdAvailable } from '@backstage/plugin-gocd';
|
||||
import { EntityCicdStatisticsContent } from '@backstage/plugin-cicd-statistics';
|
||||
|
||||
import React, { ReactNode, useMemo, useState } from 'react';
|
||||
|
||||
@@ -445,10 +444,6 @@ const websiteEntityPage = (
|
||||
{cicdContent}
|
||||
</EntityLayout.Route>
|
||||
|
||||
<EntityLayout.Route path="/ci-cd-statistics" title="CI/CD Statistics">
|
||||
<EntityCicdStatisticsContent />
|
||||
</EntityLayout.Route>
|
||||
|
||||
<EntityLayout.Route path="/lighthouse" title="Lighthouse">
|
||||
<EntityLighthouseContent />
|
||||
</EntityLayout.Route>
|
||||
|
||||
@@ -76,7 +76,7 @@ export function pipelinesToBuilds(
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* The Gitlab API can only return the job (sub-stage) of a pipeline and not a whole stage a pipeline
|
||||
* The Gitlab API can only return the job (sub-stage) of a pipeline and not a whole stage
|
||||
* The job does return from which stage it is
|
||||
* So, for the stage name we use the parent stage name and in the sub-stages we add the current job
|
||||
* In the end the cicd-statistics plugin will calculate the right durations for each stage
|
||||
|
||||
Reference in New Issue
Block a user