Skip to content

feat(jenkins): register actions for builds#8536

Open
drodil wants to merge 1 commit intobackstage:mainfrom
drodil:jenkins_actions
Open

feat(jenkins): register actions for builds#8536
drodil wants to merge 1 commit intobackstage:mainfrom
drodil:jenkins_actions

Conversation

@drodil
Copy link
Copy Markdown
Contributor

@drodil drodil commented Apr 13, 2026

Hey, I just made a Pull Request!

Add four new actions for getting and managing jenkins builds.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie
Copy link
Copy Markdown
Contributor

backstage-goalie Bot commented Apr 13, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-jenkins-backend workspaces/jenkins/plugins/jenkins-backend patch v0.28.0

Copy link
Copy Markdown
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @drodil, haven't done a full review but see a couple of issues across the PR:

Copilot AI review requested due to automatic review settings April 27, 2026 06:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 actionsRegistry dependency 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.

Comment thread workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildAction.ts Outdated
Comment thread workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildAction.ts Outdated
Copilot AI review requested due to automatic review settings April 27, 2026 07:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread workspaces/jenkins/plugins/jenkins-backend/src/actions/createGetBuildAction.ts Outdated
Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants