You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何重命名GitHub上Jenkins持续集成检查名称?

Customizing GitHub Check Names for Jenkins (Blue Ocean Integrated)

Absolutely, this is totally feasible—you don’t need extra plugins to make this happen! Jenkins’ GitHub integration has built-in options to customize those check context names, so you can easily distinguish between multiple Jenkins instances pointing to the same repo. Here’s how to do it:

Global Configuration (Applies to All Projects)

If you want every project on this Jenkins instance to use the custom check name, set it globally:

  • Go to Manage Jenkins → Configure System
  • Scroll down to the GitHub section and locate your configured GitHub Server (add one if you haven’t already set it up)
  • Look for the field named Status Context Prefix (wording might vary slightly by GitHub plugin version—older versions might call it "Context Name Prefix")
  • Replace the default value jenkins with your desired identifier (my-super-ci)
  • Save the configuration. From now on, all branch and PR merge checks will show up as continuous-integration/my-super-ci/branch and continuous-integration/my-super-ci/pr-merge in GitHub.

Per-Project Configuration (For Individual Projects)

If you only want specific projects to use the custom name, configure it on a per-project basis:

  • Open the configuration page of your target Jenkins project
  • Locate the GitHub-related settings:
    • If you’re using pull request triggers, check the GitHub Pull Request Builder section for a Context field
    • Or, in the Post-build Actions section, find Set GitHub commit status and edit the Context value
  • Replace the default jenkins/branch (for branch builds) and jenkins/pr-merge (for PR merge builds) with my-super-ci/branch and my-super-ci/pr-merge respectively
  • Save the project configuration. Only this project’s checks will use the custom naming.

Quick Note

Make sure your Jenkins GitHub plugin is up to date—some older versions might not have the global prefix option. You can update it via Manage Jenkins → Plugins → Updates. Blue Ocean integration doesn’t interfere with this setup, since the GitHub status messages are handled directly by the GitHub plugin.

内容的提问来源于stack exchange,提问作者alexmngn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 09:11:06