feat(jenkins): register actions for builds#8536
feat(jenkins): register actions for builds#8536drodil wants to merge 1 commit intobackstage:mainfrom
Conversation
Changed Packages
|
awanlin
left a comment
There was a problem hiding this comment.
Hi @drodil, haven't done a full review but see a couple of issues across the PR:
- New files should use the current year in the header
- Removed the
jenkins:prefix as that's done automatically: https://backstage.io/docs/ai/mcp-actions#namespaced-tool-names
There was a problem hiding this comment.
Pull request overview
This PR adds Jenkins “actions” registrations to the jenkins-backend plugin, exposing build listing, inspection, log retrieval, and build replay capabilities through the Actions registry (for MCP/scaffolder use-cases).
Changes:
- Register an
actionsRegistrydependency in the Jenkins backend plugin and register Jenkins build actions during plugin init. - Add four new Jenkins build actions (
list-builds,get-build,get-build-logs,trigger-build) plus unit tests. - Add a changeset describing the patch release.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| workspaces/jenkins/plugins/jenkins-backend/src/plugin.ts | Wires in actionsRegistryServiceRef and registers Jenkins actions at startup. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/index.ts | Adds a single entry point (createJenkinsActions) to register all Jenkins actions. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createListBuildsAction.ts | Implements list-builds action to list Jenkins jobs/projects for an entity. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createListBuildsAction.test.ts | Adds unit tests for list-builds. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildAction.ts | Implements get-build action to fetch build details. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildAction.test.ts | Adds unit tests for get-build. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildLogsAction.ts | Implements get-build-logs action to fetch console logs. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildLogsAction.test.ts | Adds unit tests for get-build-logs. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createTriggerBuildAction.ts | Implements trigger-build action to replay a build with permission enforcement. |
| workspaces/jenkins/plugins/jenkins-backend/src/actions/createTriggerBuildAction.test.ts | Adds unit tests for trigger-build. |
| workspaces/jenkins/.changeset/blue-mangos-carry.md | Declares a patch changeset for the new actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
Hey, I just made a Pull Request!
Add four new actions for getting and managing jenkins builds.
✔️ Checklist
Signed-off-byline in the message. (more info)