Hudson持续集成工具快速使用指南

需积分: 6 2 下载量 196 浏览量 更新于2024-07-29 收藏 776KB PDF 举报
"Hudson使用参考手册V1.1.pdf 是一本介绍Hudson持续集成工具的手册,由hanqunfeng编写,适用于版本1.386。手册涵盖了一系列基本功能的使用说明,包括插件管理、系统配置、邮件设置、构建执行顺序、部署、测试报告、安全设置等,旨在帮助用户快速上手Hudson。" 正文: Hudson是一个开源的持续集成工具,它广泛用于自动化各种构建任务,如源代码管理、构建、测试和部署。手册的作者hanqunfeng强调了Hudson的易用性,并与传统的shell脚本自动化方式进行对比,指出Hudson降低了持续集成的门槛,尤其是对于那些不熟悉shell脚本编写的人。 在手册中,"1.1 hudson--推荐序"部分,作者分享了他对Hudson的积极评价,认为它是一个简单而实用的工具。尽管他没有比较其他如Continuum或CruiseControl等持续集成框架,但他的经验表明,Hudson能够满足大部分持续集成需求。 "1.2 hudson--中文任务名称"可能涉及将Hudson的任务配置成中文,便于中国用户理解和操作。"1.3 hudson--插件管理"部分则介绍了如何安装和管理Hudson的插件,这些插件可以扩展Hudson的功能,支持如CVS、SVN版本控制系统,以及Maven构建工具。 "1.4 hudson--HUDSON_HOME"是指Hudson的主配置目录,其中存储了Hudson的配置文件和工作空间数据。"1.5 hudson--URL选项"讨论了如何配置Hudson服务器的访问URL。"1.6 hudson--系统管理"涵盖了服务器级别的设置,如系统信息、用户管理和权限控制。 "1.7 hudson--配置邮件"指导用户设置构建结果的通知邮件,确保团队成员能够及时获得构建状态更新。"1.8 hudson--scp设置"涉及到使用SCP协议进行远程文件传输的配置,常用于部署构建产出。 "1.9 hudson--构建执行顺序"解释了如何定义和控制构建任务的执行流程。"1.10 hudson--JOB_WORKSPACE"指的是每个构建任务的工作空间,其中存放了源代码和构建产物。"1.11 hudson--部署设置"介绍了自动化部署的配置方法。 "1.12 hudson--junit测试报告"涵盖了如何集成JUnit测试结果并展示在Hudson界面中。"1.13 hudson--安全设置"提供了关于Hudson服务器安全性的指南,包括用户认证和权限控制。"1.14 hudson--build配置"详细阐述了如何配置具体的构建步骤和参数。 "1.15 hudson--环境变量"讨论了如何在构建环境中使用和管理环境变量。"1.16 hudson--构建依赖"涉及到了构建之间的依赖关系,使得一个构建任务可以依赖于另一个任务的结果。"1.17 hudson--findbugs报告"介绍了如何集成FindBugs静态代码分析工具,以检测潜在的代码质量问题。 这个手册全面覆盖了Hudson的基本操作,对于初学者和希望提升Hudson使用技能的开发者来说,是一份非常有价值的参考资料。通过学习手册中的内容,用户可以更好地利用Hudson进行高效的持续集成实践。

Fetching upstream changes from git@github. com:a792883583/treeHoleScore.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 1.8.3.1' using GIT _ASKPASS to set credentials github > /usr/bin/git fetch --tags --progress git@github. com:a792883583/treeHoleScore.git +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Error fetching remote repo 'origin' hudson. plugins.git.GitException: Failed to fetch from git@github. com:a792883583/treeHoleScore.git at hudson. plugins . git .GitSCM. fetchFrom(GitSCM. java:1003) at hudson. plugins .git .GitSCM. retrieveChanges(GitSCM. java:1245) at hudson.plugins.git.GitsCM. checkout(GitSCM. java:1309) at hudson.scm. SCM. checkout(SCM. java:540) at hudson. mode1. AbstractProject . checkout(AbstractProject . java:1240) at hudson. model AbstractBuild$AbstractBuildExecution. def aultCheckout (AbstractBuild. java:649) at jenkins .scm. SCMCheckoutStrategy . checkout(SCMCheckoutStrategy . java:85) at hudson . model. AbstractBuild$AbstractBuildExecution. run(AbstractBuild. java:521) at hudson.model . Run. execute(Run. java:1900) at hudson.model. FreeSty1eBuild.run(FreeStyleBuild.java:44) at hudson. model. ResourceController . execute(ResourceController . java:101) at hudson. model. Executor .run(Executor. java:442) Caused by: hudson. plugins.git .GitException: Command "/usr/bin/git fetch --tags --progress git@github . com: a792883583/treeHoleScore.git +refs/heads/* :refs/remotes/origin/*" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandIn(CliGitAPImp1.java:2734) at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandWithCredentials(CliGitAPIImpl.java:2111) at org.jenkinsci.plugins . gitclient .CliGitAPIImp1$1. execute(CliGitAPIImp1.java:623) at hudson.p1ugins . git .GitSCM. fetchFrom (GitSCM. java:1001) 11 more ERROR: Error fetching remote repo ' origin' Finished: FAILURE

2023-02-08 上传
2023-07-15 上传

ERROR: Launching agent process aborted. Also: java.lang.Throwable: launched here at hudson.slaves.SlaveComputer._connect(SlaveComputer.java:287) at hudson.model.Computer.connect(Computer.java:447) at hudson.slaves.SlaveComputer.tryReconnect(SlaveComputer.java:854) at hudson.slaves.RetentionStrategy$Always.check(RetentionStrategy.java:173) at hudson.slaves.RetentionStrategy$Always.check(RetentionStrategy.java:161) at hudson.slaves.ComputerRetentionWork$1.run(ComputerRetentionWork.java:71) at hudson.model.Queue._withLock(Queue.java:1397) at hudson.model.Queue.withLock(Queue.java:1271) at hudson.slaves.ComputerRetentionWork.doRun(ComputerRetentionWork.java:62) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92) at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) java.lang.InterruptedException: Validate configuration: The Host must be specified The selected credentials cannot be found at hudson.plugins.sshslaves.SSHLauncher.checkConfig(SSHLauncher.java:925) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:411) at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:298) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

2023-06-06 上传