0

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

该链接指出,这可能是由于无法检测到 EOF。如果是这样,如何让詹金斯写信给“stdin/stdout/stderr”?

当我将“/User/Shared/Jenkins/Home”位置移动到 /Users/me/Jenkins/Home 和“/Applications/Jenkins/jenkins.war”文件时,我可能会错过一些文件到“/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)
4

1 回答 1

0

“膜中的疯狂”为什么到处都宣传停止启动和停止詹金斯使用:

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

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

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

您需要拥有所有进程,为此只需找到 j​​enkins.war 文件并像这样启动它:

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

突然间,一切都开始在您公司机器上的用户下运行!

请享用

于 2013-01-29T22:55:30.390 回答