Hudson中文使用手册:从入门到精通

4星 · 超过85%的资源 需积分: 10 13 下载量 167 浏览量 更新于2024-07-29 收藏 1.19MB DOC 举报
"《Hudson中文使用手册》是关于持续集成工具Hudson的详细指南,涵盖了从基础安装到高级功能的全面介绍。手册强调了持续集成的重要性和目标,旨在简化和稳定软件构建流程。Hudson作为一款开源CI服务器,被广泛应用于软件开发中。文档分为基础篇和提高篇,包括Hudson的安装、设置、任务创建、插件管理、安全性以及个性化设置等内容,并解答了一些常见问题。" 正文: 《Hudson中文使用手册》深入浅出地介绍了如何有效地使用Hudson进行持续集成。首先,手册阐述了持续集成的概念,强调其核心价值在于确保项目任何时候都能顺利构建并产出可发布的软件包。这一实践要求频繁集成,每次集成后都要执行单元测试并确保测试通过。 在基础篇中,手册详细讲解了Hudson的安装步骤。用户需要从官方网站下载最新版的Hudson(如1.383),并配置相应的环境变量,包括JAVA_HOME(指向JDK安装路径,推荐使用JDK5)、ANT_HOME(指向Ant的安装目录,建议使用最新版本1.8)和HUDSON_HOME(配置为Hudson的配置文件目录)。同时,PATH环境变量也需要包含Java和Ant的可执行文件路径。 接着,手册指导用户进行Hudson的基本设置,如配置JDK、ANT和邮件信息,并演示了如何创建和管理构建任务。用户可以在主控制面板上手动或自动触发构建,并监控构建作业的状态。 提高篇则涉及更高级的功能,如插件管理。Hudson支持丰富的插件,如FindBugs用于代码质量检查,Ftp插件用于文件传输,Junit插件帮助运行和分析测试结果,以及远程访问触发构建。此外,手册还提到了WebLogic Deployer插件,方便在WebLogic服务器上部署应用。安全篇讨论了Hudson的安全配置,确保系统的安全性和数据的保护。个性化设置部分让用户可以根据自身需求定制Hudson的工作环境。 在常见问题部分,手册列举了Hudson使用中可能遇到的问题,如editlock、IOException: Unable to delete和not recognized as a valid application type等,并提供了相应的解决方案。 最后,手册简要讨论了CI面临的挑战,比如自动化测试的复杂性,以及对ANT基本知识的介绍,帮助用户更好地理解和支持持续集成实践。 《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 上传