# \#jenkins

**URL:** https://www.isharkfly.com/tag/jenkins/19.md

[Latest](https://www.isharkfly.com/latest.md) · [Categories](https://www.isharkfly.com/categories.md) · [Tags](https://www.isharkfly.com/tags.md)

---

## [使用Hudson和FindBugs进行持续集成和代码检查](https://www.isharkfly.com/t/hudson-findbugs/11010)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [October 20, 2026, 7:16pm UTC](https://www.isharkfly.com/t/hudson-findbugs/11010 "2026-10-20T19:16:27Z")

</div>

最近在IBMdeveloperWorks发表的一篇文章中谈到了如何使用开源工具将构建过程中的持续集成（ContinuousIntegration，CI）和代码检查这两项任务自动化。 它描述了如何安装和配置Hudson——一款由java.net社区开发的CI服务器，一旦检测到源码发生变化时，它就会从Subversion代码仓库中获取最新代码，并运行Ant构建脚本。 作者AndrewGlover将如下三项作为了典型CI环境设置的主要组件…

---

## [Hudson 对 Maven2的强大支持](https://www.isharkfly.com/t/hudson-maven2/11007)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [October 20, 2026, 1:18pm UTC](https://www.isharkfly.com/t/hudson-maven2/11007 "2026-10-20T13:18:56Z")

</div>

持续集成离不开功能强大而又成熟的工具。其中最重要的三个工具是：构建工具，源码控制系统，持续集成服务器。 持续集成中三者基本的合作流程是： 持续集成服务器从源码控制系统中签出最新的代码。 持续集成服务器是用构建工具进行构建。 持续集成服务器发布构建结果。 由此可见这里持续构建服务器起主导作用，因此该工具的优劣直接关系到工作量及工作效果。 Maven2是很好的构建工具，除此之外Ant的用户群也很广泛。 源码控制系统有大家熟悉的C…

---

## [将 Hudson 做为 Windows 的一个服务进行安装](https://www.isharkfly.com/t/hudson-windows/11005)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 2:38pm UTC](https://www.isharkfly.com/t/hudson-windows/11005 "2026-09-18T14:38:58Z")

</div>

在安装之前必须启动 Hudson。 必须通过使用命令 java -jar hudson.war 的方式进行启动。 同时，你的系统需要 .net framework 的版本为 2.0 或高于 2.0 在控制台的路径： Manage Hudson \> Install as Windows Service 如果你是使用 Tomcat 做为容器运行的，那你的 Hudson 里面是没有这个选项的。

---

## [不要选择 Extended E-mail Notification 中的 Enable Debug Mode](https://www.isharkfly.com/t/extended-e-mail-notification-enable-debug-mode/1762)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [July 30, 2026, 4:00am UTC](https://www.isharkfly.com/t/extended-e-mail-notification-enable-debug-mode/1762 "2026-07-30T04:00:00Z")

</div>

上面的问题主要是在使用 ${BUILD\_LOG} 参数时出现。 比如邮件模板文件中的： \<pre\> ${BUILD\_LOG} \</pre\> Email Extension 会： 读取整个 Jenkins Console Log； 将日志放入邮件正文； 将 UTF-8 字符编码成 Quoted-Printable； Debug 模式把完整邮件内容输出回 Jenkins Console。 上面步骤 4 会导致在输出日志的时…

---

## [Jenkins Safe Restart 的方法](https://www.isharkfly.com/t/jenkins-safe-restart/10986)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 1\
**Last updated:** [July 28, 2026, 6:03pm UTC](https://www.isharkfly.com/t/jenkins-safe-restart/10986 "2026-07-28T18:03:06Z")

</div>

启动的连接地址为： Safe Restart (Recommended): http://\<your-jenkins-url\>/safeRestart 当成功启动后的界面为：

---

## [Jenkins 多分支构建 PR 移除原始分支的问题](https://www.isharkfly.com/t/jenkins-pr/2306)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [June 26, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-pr/2306 "2026-06-26T04:00:00Z")

</div>

这个问题出现在 Jenkins 多分支构建。 比如说我们现在有 2 个分支。 在没有创建 PR 的时候，Jenkins 的构建是 2 个，如下图： 随后，我们在代码库中创建一个 PR。 现在的问题是 Jenkins 将会删除原始分支构建，随后为 PR 创建一个构建。 我们希望不删除原始构建，因为这会导致在代码库中的详细界面中的构建错误。 解决 要解决这个问题的办法也很简单，在 Jenkins 针…

---

## [Jenkins Firefox 登录提示错误](https://www.isharkfly.com/t/jenkins-firefox/10053)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [June 5, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-firefox/10053 "2026-06-05T04:00:00Z")

</div>

哪怕是输入正确的用户名和密码，Jenkins 登录的时候都提示用户名和密码错误。 错误的信息为： The resource from “https://build.sharkdat.com/” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). 问题和解决 出现这个问题的原因是因为我们使用 Nginx 作…

---

## [Pnpm approve-builds --all Jenkins 第一次构建总是出错](https://www.isharkfly.com/t/pnpm-approve-builds-all-jenkins/10046)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 4:00am UTC](https://www.isharkfly.com/t/pnpm-approve-builds-all-jenkins/10046 "2026-06-02T04:00:00Z")

</div>

出现的问题： sh ‘pnpm approve-builds --all’ 在 sh ‘pnpm install --no-frozen-lockfile’ 前面的时候第一次构建总是出错。 但第二次构建的时候就成功。 处理 是正常现象：pnpm approve-builds --all 必须在 已经有 pending/ignored build scripts 之后才有东西可批准。 第一次构建时你把它放在 pnpm ins…

---

## [Jenkins Cloudflare 部署提示错误](https://www.isharkfly.com/t/jenkins-cloudflare/9316)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [April 15, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-cloudflare/9316 "2026-04-15T04:00:00Z")

</div>

+ yarn add -D wrangler@latest This project is configured to use pnpm because /var/lib/jenkins/workspace/Stonex/Stonex-Mdm- Ui/package.json has a "packageManager" field 上面的错误原因非常明确，是因为使用的包不同。 原因和解决 修改使用 pnmp 来进行部署。 原…

---

## [Jenkins pipeline 构建提示 packageManager 配置](https://www.isharkfly.com/t/jenkins-pipeline-packagemanager/10623)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [April 15, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-pipeline-packagemanager/10623 "2026-04-15T04:00:00Z")

</div>

构建 VUE 项目时，提示错误信息： Build VUE ... \[Pipeline\] sh (hide) + pnpm install --frozen-lockfile This project is configured to use yarn because /var/lib/jenkins/workspace/Stonex/Stonex-Mdm-Ui/package.json has a "packageManager" f…

---

## [Jenkins 构建 VUE 前端提示 pnpm 错误](https://www.isharkfly.com/t/jenkins-vue-pnpm/9314)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [April 14, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-vue-pnpm/9314 "2026-04-14T04:00:00Z")

</div>

错误日志为： + npx browserslist@latest --update-db npm warn exec The following package was not found and will be installed: browserslist@4.28.2 The --update-db command is deprecated. Please use npx update-browserslist-db@late…

---

## [Jenkins 中 NodeJS 安装如何添加全局安装组件](https://www.isharkfly.com/t/jenkins-nodejs/9315)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [April 14, 2026, 4:00am UTC](https://www.isharkfly.com/t/jenkins-nodejs/9315 "2026-04-14T04:00:00Z")

</div>

在 NodeJS 的安装中，可以在全局包中安装所需要的包。 如果需要安装多个包的话，使用空格作为分隔符。 开始的时候，一般可能会考虑使用逗号作为分隔符。 实际上使用的是空格作为分隔符，对需要安装的组件，直接使用空格即可。

---

## [Jenkins 中 Vue 项目构建错误](https://www.isharkfly.com/t/jenkins-vue/2594)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [March 26, 2026, 8:17pm UTC](https://www.isharkfly.com/t/jenkins-vue/2594 "2026-03-26T20:17:57Z")

</div>

\[2/4\] Fetching packages... error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git Directory: /var/lib/jenkins/workspace/Stonex/Stonex-Mdm-Ui Outpu…

---

## [Jenkins 更新时候提示 Key 错误](https://www.isharkfly.com/t/jenkins-key/18663)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 8:16pm UTC](https://www.isharkfly.com/t/jenkins-key/18663 "2026-02-19T20:16:06Z")

</div>

错误日志为： 1 package can be upgraded. Run 'apt list --upgradable' to see it. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:…

---

## [Cloudflare 的 Page 有点可以替代 Jenkins 的前端构建的意思了](https://www.isharkfly.com/t/cloudflare-page-jenkins/990)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [January 4, 2021, 4:52pm UTC](https://www.isharkfly.com/t/cloudflare-page-jenkins/990 "2021-01-04T16:52:23Z")

</div>

Cloudflare 针对代码的每次推送都会进行一次构建。 如上图，我们推送了 gtm 分支，Cloudflare 可以通过推送的 gtm 分支进行一次构建。 但构建的结果显示的是预览。 不同的分支的推送，都会触发一次构建。 这样也就完美的实现了 Jenkins 的前端构建功能。 需要注意的是，只要推送就会构建。 随着时间的流逝，构建数量可能会非常多。

---

## [Jenkins 因权限的构建错误](https://www.isharkfly.com/t/jenkins/13607)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [July 25, 2021, 12:22pm UTC](https://www.isharkfly.com/t/jenkins/13607 "2021-07-25T12:22:44Z")

</div>

构建错误的日志为： TASK \[Docker Remove Orphans\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[4\]: FAILED! =\> {"changed": true, "cmd": "docker compose up -d --remove-orphans", "delta": "0:00:00.407026", "end": "2025…

---

## [Jenkins 构建提示 Node 错误](https://www.isharkfly.com/t/jenkins-node/13688)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [August 13, 2021, 11:14pm UTC](https://www.isharkfly.com/t/jenkins-node/13688 "2021-08-13T23:14:04Z")

</div>

Jenkins 构建的时候提示错误。 Obtained Jenkinsfile from git https://src.isharkfly.com/iSharkFly/zchub-crawler.git org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 9: Tool type "nodejs…

---

## [Jenkins 构建 NPM 错误](https://www.isharkfly.com/t/jenkins-npm/14087)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:02am UTC](https://www.isharkfly.com/t/jenkins-npm/14087 "2022-09-07T10:02:45Z")

</div>

构建 Node 项目错误： + yarn install /tmp/jenkins2455296827882007128.sh: 6: yarn: not found 问题和解决 出现上面问题的原因是 Jenkins 的环境中没有安装 node。 Node 查看版本，提示 node 没有找到。 运行命令 ： apt install nodejs 来进行安装。 Ubuntu 24.04 默认安装 node 的版本…

---

## [NodeJS 应该安装那个版本](https://www.isharkfly.com/t/nodejs/14085)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [September 6, 2022, 4:29am UTC](https://www.isharkfly.com/t/nodejs/14085 "2022-09-06T04:29:56Z")

</div>

Ubuntu 默认安装的 NodeJS 版本实在是太低了。 那么都 2025 年了，NodeJS 应该安装那个版本？ NodeJS 线路图 根据 NodeJS 的线路图： 2025 应该选择 NodeJS 的版本为 22

---

## [Jenkins 在 Ubuntu 安装中修改启动端口的文件](https://www.isharkfly.com/t/jenkins-ubuntu/15099)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [November 4, 2023, 5:35pm UTC](https://www.isharkfly.com/t/jenkins-ubuntu/15099 "2023-11-04T17:35:31Z")

</div>

Jenkins 在不同的操作系统下配置文件的路径也会不同。 Ubuntu 的配置文件路径为： vi /etc/default/jenkins 打开这个文件后可以修改 HTTP\_PORT 这个配置文件来指定启动的端口。

---

## [Jenkins CentOS 8 设置默认端口](https://www.isharkfly.com/t/jenkins-centos-8/758)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [December 6, 2020, 4:33pm UTC](https://www.isharkfly.com/t/jenkins-centos-8/758 "2020-12-06T16:33:02Z")

</div>

Jenkins 使用的默认端口是 8080。 在 CentOS 你可以通过修改 /etc/sysconfig/jenkins 文件中的 JENKINS\_PORT=“8080” 端口来修改 Jenkins 使用默认的端口。 当你重新启动后，就可以使用新的端口了。

---

## [在Ubuntu上安装Jenkins的完整指南](https://www.isharkfly.com/t/ubuntu-jenkins/17135)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 9:03pm UTC](https://www.isharkfly.com/t/ubuntu-jenkins/17135 "2025-03-26T21:03:31Z")

</div>

ubuntu 如何安装 jenkins

---

## [Docker 推送的时候提示： denied: requested access to the resource is denied](https://www.isharkfly.com/t/docker-denied-requested-access-to-the-resource-is-denied/707)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 2:21pm UTC](https://www.isharkfly.com/t/docker-denied-requested-access-to-the-resource-is-denied/707 "2020-11-14T14:21:26Z")

</div>

在使用 Jenkins 构建 Docker image 的时候提示错误： denied: requested access to the resource is denied 这个错误是我们再 docker push 的时候提示的错误： 我们计划执行的命令是： docker push honeymoose/sco-service-docker 但是Jenkins 提示了上面的错误。 准确的说，上面错误的原因是你没有登…

---

## [了解 Jenkins 的功能与应用场景](https://www.isharkfly.com/t/jenkins/16587)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 2:55pm UTC](https://www.isharkfly.com/t/jenkins/16587 "2024-11-07T14:55:29Z")

</div>

Jenkins 是什么能提供什么服务。

---

## [Jenkins 构建时候提示超时错误被终止](https://www.isharkfly.com/t/jenkins/16563)

<div class="topic-metadata">

**Author:** [@hex](https://www.isharkfly.com/u/hex)\
**Replies:** 0\
**Last updated:** [November 3, 2024, 1:57am UTC](https://www.isharkfly.com/t/jenkins/16563 "2024-11-03T01:57:25Z")

</div>

近期在使用 Jenkins 构建项目的时候，经常性得到错误： - Building for production... Build timed out (after 3 minutes). Marking the build as aborted. 当再次重构后，貌似没有问题，等候一段时间后问题又再次出现。 问题和解决 出现上面的问题是可能在你的 Jenkins 中针对特定的项目配置了超时时间。 检查项目配置中的超时配置…

---

## [Jenkins 修改启动端口](https://www.isharkfly.com/t/jenkins/14370)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [March 31, 2023, 6:18pm UTC](https://www.isharkfly.com/t/jenkins/14370 "2023-03-31T18:18:56Z")

</div>

在默认情况下 Jenkins 使用的端口是 8080。 新版本 Jenkins 在启动配置文件 新版本的 Jenkins 的配置文件在新的启动配置文件中。 如果你没有办法从其他地方找到配置文件，可以尝试修改文件： nano /usr/lib/systemd/system/jenkins.service 在上面的启动配置文件中，而已进行修改。 其他版本的 Jenkins 可能位置 这个端口可能会与当前服务器上运行的很多程序…

---

## [Jenkins Stage View 不显示](https://www.isharkfly.com/t/jenkins-stage-view/15400)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [January 24, 2024, 4:05am UTC](https://www.isharkfly.com/t/jenkins-stage-view/15400 "2024-01-24T04:05:35Z")

</div>

近期我们对 Jenkins 的一个项目进行了重命名。 然后 Stage View 就不显示了。 解决方法 其实这个问题的解决方法就是更新所有 Jenkins 的插件然后重启 Jenkins 就可以了。

---

## [经过小折腾，可算是把 Code Coverage API 用上了](https://www.isharkfly.com/t/code-coverage-api/14355)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 12:51pm UTC](https://www.isharkfly.com/t/code-coverage-api/14355 "2023-03-27T12:51:05Z")

</div>

Code Coverage API 这个插件 主要是用于图形化显示你的 Code Coverage。 这个插件不能帮你完成代码覆盖测试，但是能帮你图形化显示下。 查询功能还比较弱，就是好看点吧，实际上对开发人员来说。 可能还没有 IntelliJ IDEA 自带的代码覆盖测试运行好用。

---

## [Jenkins 如何配置 JDK](https://www.isharkfly.com/t/jenkins-jdk/14374)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [April 7, 2023, 11:52am UTC](https://www.isharkfly.com/t/jenkins-jdk/14374 "2023-04-07T11:52:20Z")

</div>

Jenkins 在编译的时候出现了一个问题是项目要求使用的是 JDK 17，但是 Jenkins 自己是运行在 JDK 11 上的，这样导致 Jenkins 没有办法进行编译。 Jenkins 中安装 JDK 的配置，也只能配置到 JDK 9。 问题和解决 这个问题其实是可以通过指定 JDK 的安装程序来解决的。 例如我们希望使用的是 JDK 17，我们可以使用 IBM 提供的 OpenJDK。 地址为： Semeru R…

---

## [Jenkins 的集成环境各种不通](https://www.isharkfly.com/t/jenkins/14353)

<div class="topic-metadata">

**Author:** [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 1:42pm UTC](https://www.isharkfly.com/t/jenkins/14353 "2023-03-25T13:42:08Z")

</div>

真的不想加班，集成环境各种不通。 再试一次，再不通的话就吃早饭去。

[Next page](https://www.isharkfly.com/tag/jenkins/19.md?match_all_tags=true&page=1&tags%5B%5D=jenkins)
