2012-03-27 76 views
2

我試圖建立我的Xcode的Projekt與詹金斯,但是當我建我的錯誤Xcode的集成 - 權限被拒絕

Started by user anonymous Building in workspace /Users/icash/.jenkins/jobs/first-ios-app/workspace JDK installation 
skipped: Unknown CPU name: mac os x Checkout:workspace//Users/icash/.jenkins/jobs/first-ios-app/workspace - 
[email protected] Using strategy: Default Last Built Revision: 
Revision abc22103fa068c103fabf76999ec03d8710957f4 (origin/master) 
Checkout:workspace//Users/icash/.jenkins/jobs/first-ios-app/workspace - 
[email protected] Fetching changes from 1 remote Git repository Fetching upstream changes 
from git://github.com/shinetech/jenkins-ios-example.git Commencing build of Revision 
abc22103fa068c103fabf76999ec03d8710957f4 (origin/master) Checking out Revision abc22103fa068c103fabf76999ec03d8710957f4 
(origin/master) JDK installation skipped: Unknown CPU name: mac os x Working directory is 
/Users/icash/.jenkins/jobs/first-ios-app/workspace [workspace] $ /users/icash/dev/ -version FATAL: Cannot run program 
"https://stackoverflow.com/users/icash/dev/" (in directory "/Users/icash/.jenkins/jobs/first-ios-app/workspace"): error=13, Permission denied 
java.io.IOException: Cannot run program "https://stackoverflow.com/users/icash/dev/" (in directory 
"/Users/icash/.jenkins/jobs/first-ios-app/workspace"): error=13, Permission denied 
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) 
at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) 
at hudson.Launcher$ProcStarter.start(Launcher.java:338)  at hudson.Launcher$ProcStarter.join(Launcher.java:345) 
at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:120) 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)  
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)  
at hudson.model.Build$RunnerImpl.build(Build.java:178) 
at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)  
at hudson.model.Run.run(Run.java:1410) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
at hudson.model.ResourceController.execute(ResourceController.java:88) 
at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: error=13, Permission denied  
at java.lang.UNIXProcess.forkAndExec(Native Method)  
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)  
at java.lang.ProcessImpl.start(ProcessImpl.java:91)  
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 

雖然我給.jenkins文件夾的所有權限。

+1

請張貼更多的堆棧。 – socha23 2012-03-27 10:51:54

回答

0

看起來它試圖運行一個目錄(/users/icash/dev/),就像它是一個應用程序一樣。似乎有東西配置不正確。在您的頂級搜索/users/icash/dev/config.xml;如果沒有找到搜索模式${var_name}/dev。如果沒有找到,請在config.xml找工作。

0

我敢打賭,你的構建步驟是這樣的:

/users/icash/dev/$SOMEVARIABLE -version 

和SOMEVARIABLE沒有在詹金斯運行的環境定義。這就是爲什麼它擴展爲空字符串。剩下的是目錄的路徑,你不能執行它。

如果您在Jenkins中需要一些環境變量,您可以通過轉到Jenkins UI - > Manage Jenkins - > Configure System來設置它們。然後在那裏添加環境變量。