Jenkins Process中的ios-sim泄露了文件描述符

时间:2013-01-28 02:29:36

标签: jenkins ios-simulator

当我尝试使用shell启动ios-sim时,我在Jenkins中获得了文件泄漏描述符。我应该提到的是,我将Jenkins的用户改为远离最初安装的“/ Users / Shared / Jenkins”位置的用户。这是消息

  

链接表明可能是由于无法检测到EOF。如果是这样,怎么能指出Jenkins写“stdin / stdout / stderr”?

当我将“/ User / Shared / Jenkins / Home”位置移动到/ Users / me / Jenkins / Home和“/ Applications / Jenkins / jenkins”时,是否会出现一些我可能错过的文件。 war“file to”/User/me/Applications/jenkins.war“?

除了这些动作之外,我更新了org.jenkins-ci.plist,如下所示:

    <plist version="1.0">
<dict>
<key>StandardOutPath</key>
<string>/var/log/jenkins/jenkins.log</string>
<key>StandardErrorPath</key>
<string>/var/log/jenkins/jenkins.log</string>
    <key>EnvironmentVariables</key>
    <dict>
            <key>JENKINS_HOME</key>
            <string>/Users/me/Jenkins/Home</string>
    </dict>
    <key>GroupName</key>
    <string>staff</string>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>org.jenkins-ci</string>
    <key>ProgramArguments</key>
    <array>
            <string>/bin/bash</string>
            <string>/Library/Application Support/Jenkins/jenkins-runner.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>UserName</key>
    <string>me</string>
    <key>SessionCreate</key>
    <true />
</dict>
</plist>

我正在使用Jenkins版本1.499

这是jenkins.log错误:

WARNING: Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
java.lang.Exception
at hudson.Proc$LocalProc.join(Proc.java:329)
at hudson.Launcher$ProcStarter.join(Launcher.java:360)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592)
at hudson.model.Run.execute(Run.java:1543)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)

1 个答案:

答案 0 :(得分:0)

“在膜中疯狂”为什么它到处宣传停止开始和停止使用jenkins:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

????谁想编辑jenkins-runner.sh或将值添加到.plist文件???? boooo

秘密是在安装在“/Users/me/.jenkins”位置时创建的秘密用户jenkins。

您需要拥有所有进程,为此只需找到jenkins.war文件并启动它:

nohup java -jar ~/.jenkins/jenkins.war --httpPort=8080

突然间,一切都开始在公司机器上的用户下工作了!

享受