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

Jenkins 2.46.3获取各类SCM选项及本地代码关联问题求助

Troubleshooting Source Code Management Plugin Issue in Jenkins 2.46.3 (JDK 7/Tomcat 8)

Hey there, let's work through this problem together. The root of your issue is likely the combination of your older Jenkins version (2.46.3), JDK 7, and the fact that most modern SCM plugins have dropped support for these legacy environments. Here's what you can do to get source code integration working:

1. Install Compatible Older SCM Plugin Versions

Since newer plugin releases won't run on JDK 7 or Jenkins 2.46.3, you'll need to track down and install legacy versions of common SCM plugins:

  • Git Plugin: Version 3.9.3 is the last release that supports JDK 7 and Jenkins 2.46.3.
  • Subversion Plugin: Version 2.10.3 works with your environment.

To install these:

  • Go to Manage Jenkins > Manage Plugins.
  • If you don't see the plugin in the "Available" tab (since the default update center serves newer versions), you'll need to manually download the .hpi file for the compatible version.
  • Then navigate to Manage Jenkins > Manage Plugins > Advanced, use the "Upload Plugin" section to upload the .hpi file, and restart Jenkins once installation completes.

2. Verify JDK Configuration

Double-check that Jenkins is properly using JDK 7:

  • Head to Manage Jenkins > Global Tool Configuration.
  • Ensure JDK 7 is added with the correct path, and set it as the default JDK (or explicitly select it in your job configuration). Mismatched JDK versions can prevent plugins from loading correctly.

3. Check for Tomcat-Jenkins Environment Conflicts

Make sure Tomcat itself is running on JDK 7—if Tomcat uses a newer JDK, it can cause classpath conflicts that break plugin functionality. You can verify this by checking Tomcat's startup logs or running echo $JAVA_HOME in the environment where Tomcat is launched.

4. Inspect Jenkins Logs for Errors

If you still only see "None" in the SCM options after installing plugins, check the Jenkins logs (located in your Tomcat logs directory, usually named jenkins.log) for plugin load errors. Common issues include missing dependencies, which you can resolve by installing the required older versions of dependent plugins.

A quick heads-up: Jenkins 2.46.3 is no longer supported, and running it with JDK 7 exposes you to security vulnerabilities. If possible, consider upgrading to a newer Jenkins version that supports a modern JDK—but if you're stuck with this environment, the steps above should get your source code integration working.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.15 06:51:25