我们正在使用 Play!框架,我已经设置了我们的 Jenkins CI 以在主 Unix 机器上运行自动测试和其他东西。作为第二步,我想设置一个 windows slave 来在浏览器 webdriver 测试中运行一些。不幸的是,我的构建没有达到这一点。源在工作区目录中检查正常。作为第一个构建步骤,我运行
play clean
似乎每次都失败。我已经授予该目录的管理员完全权限,并且我正在该管理员下运行 jenkins slave,就像这样
runas /noprofile /user:DOMAIN\Administrator "javaws http://jenkins:8080/computer/Keith/slave-agent.jnlp"
我从 jenkins 看到的控制台输出是:
Building remotely on Keith in workspace C:\Documents and Settings\administrator\My Documents\Jenkins\workspace\windows
Updating http://svnrepo..
At revision 448
no change for http://svnrepo.. since the previous build
play path is C:\Software\Play\play
Executing C:\Software\Play\play clean "C:\Documents and Settings\administrator\My Documents\Jenkins\workspace\windows"
[windows] $ C:\Software\Play\play clean "C:\Documents and Settings\administrator\My Documents\Jenkins\workspace\windows"
Build step 'Play!' marked build as failure
Finished: FAILURE
请注意,当我在 Windows 框上手动运行以下命令时,它工作正常:
C:\Software\Play\play clean "C:\Documents and Settings\administrator\My Documents\Jenkins\workspace\windows"
有人知道我做错了什么吗?
谢谢!
最佳答案
我遇到了同样的问题,我通过在 Play 路径末尾添加 .bat
解决了这个问题。在您的情况下,您应该将 jenkins 中的 Play 路径配置为 C:\Software\Play\play.bat
(而不仅仅是 C:\Software\Play\play
)。
关于windows - Jenkins Windows slave 运行失败!框架构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8937835/