Skip to content

Commit 97e2190

Browse files
sfvishalguptaclaude
andcommitted
fix(cicd): add GitHub Actions and Jenkins to CI/CD tab, restore biz-book-api catalog
- Add biz-book-api catalog location from dev branch (matches backup branch) - Add GitHub Actions content to CI/CD tab with priority over Jenkins - Add Jenkins content to CI/CD tab for entities with jenkins.io/job-full-name annotation - CI/CD tab now shows: GitHub Actions (if available) → Jenkins (if available) → Empty state This restores CI/CD functionality lost when resetting to tag 0.0.76. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent ca8a9ee commit 97e2190

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

app-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ catalog:
341341
rules:
342342
- allow: [Component, System, API, Group, User, Resource]
343343

344+
- type: url
345+
target: https://github.com/sourcefuse/biz-book-api/blob/dev/catalog-info.yaml
346+
rules:
347+
- allow: [Component, API, System, Resource, Group, User, Location]
348+
344349
# kubernetes:
345350
# see https://backstage.io/docs/features/kubernetes/configuration for kubernetes configuration options
346351
# see https://backstage.io/docs/permissions/getting-started for more on the permission framework

packages/app/src/components/catalog/EntityPage.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ import {
7272
isJenkinsAvailable,
7373
} from '@internal/backstage-plugin-jenkins-with-reporting';
7474

75+
import {
76+
EntityGithubActionsContent,
77+
isGithubActionsAvailable,
78+
} from '@backstage-community/plugin-github-actions';
79+
7580
import {
7681
EntityGrafanaAlertsCard,
7782
EntityGrafanaDashboardsCard,
@@ -89,14 +94,20 @@ const techdocsContent = (
8994
);
9095

9196
const cicdContent = (
92-
// This is an example of how you can implement your company's logic in entity page.
93-
// You can for example enforce that all components of type 'service' should use GitHubActions
9497
<EntitySwitch>
98+
<EntitySwitch.Case if={isGithubActionsAvailable}>
99+
<EntityGithubActionsContent />
100+
</EntitySwitch.Case>
101+
102+
<EntitySwitch.Case if={isJenkinsAvailable}>
103+
<EntityJenkinsContent />
104+
</EntitySwitch.Case>
105+
95106
<EntitySwitch.Case>
96107
<EmptyState
97108
title="No CI/CD available for this entity"
98109
missing="info"
99-
description="You need to add an annotation to your component if you want to enable CI/CD for it. You can read more about annotations in Backstage by clicking the button below."
110+
description="You need to add an annotation to your component if you want to enable CI/CD for it. You can read more information about annotations in Backstage by clicking the button below."
100111
action={
101112
<Button
102113
variant="contained"

0 commit comments

Comments
 (0)