我有一个jenkins作业,它调用gradle脚本。在这项工作中,我首先有一个shell脚本:
此脚本应调整文件local.properties。如您所见,我还为Java添加了两个系统变量的导出。
在这个shell脚本之后,我像这样运行gradle
但在运行此作业时,我收到错误消息
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileProdReleaseJavaWithJavac'.
> Could no
我有一个WebDriver测试,使用的是我试图作为Jenkins作业运行的FirefoxDriver。
它在Windows上运行得很好,在我的Jenkins服务器所在的Linux上,它也可以从命令行运行。
不幸的是,在作为Jenkins作业执行时,我得到了以下错误:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
Jenkins作业由两个步骤组成:执行以下内容的shell步骤:
Xvfb :1 -screen 0
我最近刚开始对scala进行编程,在“scala中的编程”(www.artima.com/pins1ed)一书中,介绍了在linux中执行scala脚本的以下方法:
#!/bin/sh
exec scala "$0" "$@"
!#
// Say hello to the first argument
println("Hello, "+ args(0) +"!")
现在我已经使用linux很长时间了,但是bash脚本不是我的专长。现在我可以猜到这种scrpt是如何工作的(而且它运行得很好),但是我想知道!#和$@到底做了什么。