我正在尝试设置Jenkins来运行用Scala编写的Play应用程序。我正在使用sbt插件来构建项目。我正在关注cloudbees教程:http://developer.cloudbees.com/bin/view/DEV/Playframework。不幸的是,我仍然得到java.io.IOException:权限被拒绝错误,我无法找到解决方案:(。首先构建jenkins从存储库加载所有jar:
Checking out Revision 84c8c2c34716cb58ad6661ef12a7c4c03bf43500 (origin/master)
[play-test] $ /usr/lib/jvm/java-7-oracle/bin/java -Dhttp.port=80 -Dsbt.log.noformat=true -jar /opt/sbt/sbt-launch.jar clean compile test
Getting org.scala-sbt sbt 0.13.0 ...
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.0/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;0.13.0!sbt.jar (629ms)
...
downloading http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.0/jars/apply-macro.jar ...
[SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.0!apply-macro.jar (750ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
43 artifacts copied, 0 already retrieved (12440kB/92ms)
Getting Scala 2.10.2 (for sbt)...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.10.2!scala-compiler.jar (86664ms)
...
downloading http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.4/jansi-1.4.jar ...
[SUCCESSFUL ] org.fusesource.jansi#jansi;1.4!jansi.jar (296ms)
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
5 artifacts copied, 0 already retrieved (24390kB/159ms)
[error] java.io.IOException: Permission denied
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? Build step 'Build using sbt' changed build result to FAILURE
Build step 'Build using sbt' marked build as failure
Finished: FAILURE
从第二次开始后,它第二次粉碎了消息:
[play-test] $ /usr/lib/jvm/java-7-oracle/bin/java -Dhttp.port=80 -Dsbt.log.noformat=true -jar /opt/sbt/sbt-launch.jar clean compile test
[error] java.io.IOException: Permission denied
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? Build step 'Build using sbt' changed build result to FAILURE
Build step 'Build using sbt' marked build as failure
Finished: FAILURE
我尝试了很多解决方案,但没有一个解决方案:(。请帮忙!