2014-04-23 8 views
0

sbt 플러그인으로 hudson 작업을 실행하려고합니다. 이 오류가 발생합니다 :허드슨에서 SBT 프로젝트 빌드

Started by user anonymous 
Checkout:workspace//home/hudson/jobs/MyProject/workspace - [email protected] 
Using strategy: Default 
Last Built Revision: Revision 584f76d5dbd46e1fa0e32eb7e575aa53e724b1e5 (origin/master) 
Checkout:workspace//home/hudson/jobs/MyProject/workspace - [email protected] 
Fetching changes from the remote Git repository 
Fetching upstream changes from ssh://[email protected]/MyProject.git 
Commencing build of Revision 584f76d5dbd46e1fa0e32eb7e575aa53e724b1e5 (origin/master) 
Checking out Revision 584f76d5dbd46e1fa0e32eb7e575aa53e724b1e5 (origin/master) 
[workspace] $ /usr/lib/jvm/java-7-oracle/bin/java -Xmx512M -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=128m -Dsbt.log.noformat=true -jar /opt/hudson/plugin/sbt/bin/sbt-launch.jar clean compile test 
java.io.IOException: No such file or directory 
    at java.io.UnixFileSystem.createFileExclusively(Native Method) 
    at java.io.File.createNewFile(File.java:1006) 
    at xsbt.boot.Locks$.apply0(Locks.scala:35) 
    at xsbt.boot.Locks$.apply(Locks.scala:28) 
    at xsbt.boot.Launch.locked(Launch.scala:240) 
    at xsbt.boot.Launch.app(Launch.scala:149) 
    at xsbt.boot.Launch.app(Launch.scala:147) 
    at xsbt.boot.Launch$.run(Launch.scala:102) 
    at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36) 
    at xsbt.boot.Launch$.launch(Launch.scala:117) 
    at xsbt.boot.Launch$.apply(Launch.scala:19) 
    at xsbt.boot.Boot$.runImpl(Boot.scala:44) 
    at xsbt.boot.Boot$.main(Boot.scala:20) 
    at xsbt.boot.Boot.main(Boot.scala) 
Error during sbt execution: java.io.IOException: No such file or directory 
Finished: FAILURE 

나는 this입니다.

내 프로젝트 디렉토리에 동일한 명령 java -Xmx512M -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=128m -Dsbt.log.noformat=true -jar /opt/hudson/plugin/sbt/bin/sbt-launch.jar clean compile test을 로컬로 실행할 수 있으며 정상적으로 작동합니다. 아이디어가 있으십니까?

답변

1

발견 된 문제 : 프로세스 (tomcat)를 실행하는 홈 디렉토리가 소유자로 루트 아래에 있습니다. 그래서, 그냥 허가 문제 (항상) ...

0

나는 우분투 14.x와 15.10에서 Jenkins CI가 deb 패키지 소스를 사용하여 설치되었을 때 jenkins 사용자 계정의 홈 디렉토리가 생성되지 않았다는 것을 발견했다. . "/ etc/passwd"파일에서 jenkins 계정에 홈 경로 설정이 있지만 실제로 존재하지는 않습니다.

나는 결국 실종 된 폴더를 만들고 "젠킨스"에 사용자 및 그룹 소유권을 할당했다.

작업을 다시 실행하면 모두 정상입니다. 이제 ".ivy"및 ".sbt"폴더가 생성되었음을 알 수 있습니다.