- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
情况是这样的,我试图在服务器的构建/部署过程之后触发一组 Gallio 测试。构建脚本是 Nant,我们通过 Hudson 将它激活到远程服务器。
经过一番努力后,我在构建脚本中遇到了以下错误。注意:我清理了文件路径并将它们替换为 (Description)
Buildfile: file:///(Build script location)
Target framework: Microsoft .NET Framework 4.0
Target(s) specified: build-robot
[include] Including file (Build script location)
[property] Read-only property "doDeploy" cannot be overwritten.
[property] Read-only property "runSmokeTests" cannot be overwritten.
[tstamp] Tuesday, November 22, 2011 3:51:01 PM.
[tstamp] Tuesday, November 22, 2011 3:51:01 PM.
[echo] Setting RELEASE mode to true
[echo] The Output Folder is set to: (Nightly build server)
[echo] Loading Gallio Task from: (Source dir path)\References\Gallio\Gallio.NAntTasks.dll
[loadtasks] Scanning assembly "Gallio.NAntTasks" for extensions.
global.failure:
tear.down:
[echo] In tear.down...
clean:
[echo] Starting clean target...
[echo] End of clean target...
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
(output dir)(30,3):
Failure scanning
"(Source dir path)\References\Gallio\Gallio.NAntTasks.dll" for extensions.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
这是我加载程序集的脚本区域。
<!-- Load Gallio Tasks for automated Testing -->
<echo message="Loading Gallio Task from: ${path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll')}" />
<loadtasks assembly="${path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll')}" if="${file::exists(path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll'))}" />
<echo message="Failed to find Gallio.NantTasks.dll" unless="${file::exists(path::combine(repoDirectory,'Source\References\Gallio\Gallio.NAntTasks.dll'))}" />
<echo message="${LoaderExceptions}" />
<echo message="Gallio Tasks Loaded..." />
还有 Gallio 任务本身。
<target name="run.automated.tests">
<echo message="Begining Automated Testing..." />
<property name="nant.onfailure" value="global.failure" />
<gallio result-property="exitCode" failonerror="false" >
<files>
<include name="${path::combine(outputDirectory,'bin\AutomatedQATest.dll')}" />
</files>
<!--
<runner-extension value="AutomatedQATest,Gallio.AutomatedQATest" />
<assemblies>
<include value="${path::combine(outputDirectory,'bin\AutomatedQATest.dll')}" />
</assemblies> -->
</gallio>
<fail message="Oh no!" if="${exitCode} != '0'}" />
</target>
有什么想法吗?我今天大部分时间都在寻找答案,谷歌要么向我提供贬值的解决方法,要么向我提供行不通的想法。
谢谢大家!
最佳答案
启用 Fusion 日志记录以获得更详细的错误消息。
请参阅本教程:http://www.hanselman.com/blog/BackToBasicsUsingFusionLogViewerToDebugObscureLoaderErrors.aspx
我认为缺少一个或多个依赖项。
关于testing - Gallio 与 Nant 和 Hudson 的集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8235179/
我们为Hudson提供了一个自定义插件,可将构建的输出上传到远程计算机上。我们刚刚开始研究使用Hudson从属服务器来提高构建的吞吐量,但是使用自定义插件的项目无法通过FileNotFoundExce
我打算使用Ubuntu镜像在Amazon EC2上安装Hudson。我要测试的代码没有很大的内存开销-我将主要执行python单元测试。 我应该使用哪个EC2实例?微型实例是否足够(有足够的内存)还是
我正在研究一种为Hudson定义环境变量的方法(构建服务器上的NCover路径),以便构建脚本可以使用它,但不需要在Hudson作业中重新定义它(类似于% SVN_REVISION% 或 %BUILD
我正在尝试在服务器上安装 Hudson。文章here说只是做 java -jar hudson.war 它应该安装到服务器。这在本地计算机上非常简单,但我想在我通过 cPanel 管理的远程网站主机上
因此,我在 Hudson 上有几项工作需要 3-6 个小时才能运行。从机是在 VM 上运行的各种不同的 Windows 操作系统。有时,会出现一个小问题,显然会导致已打开 6 小时的套接字关闭。 (即
我知道有Web API允许使用当前内部版本号进行此操作。但这需要身份验证,因此必须在每个 hudson 上编辑脚本。 有没有一种方法可以通过脚本或插件来实现? 最佳答案 如果您正在谈论设置构建说明,J
我需要强行停止在远程服务器上运行的 Hudson 构建。是否有命令/API 来做到这一点? 例如:要触发一个新的构建,我们可以这样做:- HUDSON_URL/job/JOBNAME/build 寻找
问题 假设我有一个 jenkins/hudson 工作(例如自由式),它需要两个参数 PARAM_ONE 和 PARAM_TWO .现在,我不知道这些参数的值,但我可以运行一些脚本(perl/shel
我在 hudson 上丢失了管理员用户密码(实际上它只是随机停止工作),我可以通过禁用安全性(编辑 ~/.hudson/config.xml)重新进入,然后我可以配置 hudson,但我找不到添加新用
我正在尝试将 Hudson 配置为在构建失败时向将损坏的构建提交给 SVN 的人发送电子邮件。 题 是否可以做到这一点,如果可以,我该如何配置 Hudson 来做到这一点? 最佳答案 是 - 在您的工
我有一项艰巨的任务摆在我面前……修改几个 hudson 工作的配置。我想要的是从命令行执行此操作。但是根据我的经验,除非您强制它“从磁盘重新加载配置”,否则 hudson 不会重新读取配置。 我不想仅
如何触发 Hudson 的另一项作业作为预构建步骤? 最佳答案 有一个Parameterized Trigger Plugin ,这会在“添加构建步骤”菜单中启用“在其他项目上触发/调用构建”。 关于
我使用 Hudson 来自动测试一个非常大的重要产品。我希望我的测试主机能够运行理论上支持的尽可能多的并发构建,但 excel 测试除外,它在任何时间每台机器只能运行一个。任意数量的非 Excel 测
有谁知道如何在 Hudson 服务器中搜索通过运行重复的 JUnit 测试生成的增量日志文件? Hudson 仪表板将显示最近二十个测试,但我们正在寻找一个日志文件,其中包含 Hudson 构建的完整
我有 1 个上游作业和 2 个并行下游作业。当上游作业成功时,会触发 2 个下游作业。目前,我分别为每个工作发送邮件通知。不是收件人提示太多邮件。 我需要找到一种方法来收集这 3 个作业的构建结果并发
当使用标准 Hudson 源代码控制管理插件之一时,默认情况下,自上次 Hudson 构建以来的更改将被收集并显示在“最近更改”中。 我们的构建有一个基础存储库,然后子模块位于它们自己的存储库中。我们
我们有一个包含八个节点的 Hudson 集群。当某个特定的代码分支不再处于事件状态时,我们会禁用构建作业,但该作业的工作区仍然会占用所有节点上的空间。 我正在寻找一种在所有节点上触发工作区清理的方法。
是否可以为 Hudson 中的每个构建维护多个工作区?假设如果我想保留最后 5 个构建,是否也可以拥有五个相应的工作区文件夹?目前,无论何时安排新构建,它都会覆盖工作区。 最佳答案 现在的想法是重用工
在我们公司,我们使用 Hudson 作为我们的 CI 服务器。我们为每个当前项目运行单独的服务器(通常有 3 到 10 个正在进行的项目)。 我们想在中央位置设置一个监视器,以同时显示所有构建服务器的
如果所有 maven 项目都很好,我正在使用 Hudson promoted 构建插件来尝试自动部署。 我的设置类似于下面的 Hudson 作业创建版本控制标签,然后触发项目 A 和 B 的下游构建。
我是一名优秀的程序员,十分优秀!