GithubHelp home page GithubHelp logo

Comments (9)

subdigital avatar subdigital commented on July 3, 2024

I'm also having this same issue...

from kif.

subdigital avatar subdigital commented on July 3, 2024

Note: I'm able to execute this just fine if I ssh into the server and run the command. Just not via jenkins. I have a whoami in the script, so I'm definitely running as the same user.

from kif.

gorbster avatar gorbster commented on July 3, 2024

Is your OS X server logged-in as a real user, preferably the same user Jenkins is running under?

from kif.

subdigital avatar subdigital commented on July 3, 2024

Yes, I'm logged in as the same user via screen share. If I run the build script via SSH from my box to the server, I can see the simulator start up in the Screen Sharing window.

When jenkins runs it, I don't see anything, it just times out.

from kif.

gorbster avatar gorbster commented on July 3, 2024

Ok. How did you install Jenkins? We're using the native OS X installer (http://mirrors.jenkins-ci.org/osx/latest), configured in /Library/LaunchAgents. Here's what the agent config dictionary (org.jenkins-ci.plist) looks like:

<dict>
    <key>Label</key>
    <string>org.jenkins-ci</string>
    <key>UserName</key>
    <string>daemon</string>
    <key>GroupName</key>
    <string>daemon</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/java</string>
        <string>-Xmx512m</string>
        <string>-jar</string>
        <string>/Applications/Jenkins/jenkins.war</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>EnvironmentVariables</key>
    <dict>
        <key>JENKINS_HOME</key>
        <string>/Users/Shared/Jenkins/Home</string>
    </dict>
</dict>

I believe this is the stock configuration.

from kif.

subdigital avatar subdigital commented on July 3, 2024

Mine was installed similarly (I think), however my configuration is in /Library/LaunchDaemons and looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>EnvironmentVariables</key>
    <dict>
        <key>JENKINS_HOME</key>
        <string>/Users/Shared/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>gaurav</string>
</dict>
</plist>

from kif.

subdigital avatar subdigital commented on July 3, 2024

Moving the plist over into /Library/LaunchAgents did the trick!

I read a little more about the difference between the two types of processes here, which helped:
http://reviews.cnet.com/8301-13727_7-10329211-263.html

Thanks for the assistance.

from kif.

gorbster avatar gorbster commented on July 3, 2024

Cool, glad you got it working.

from kif.

jkennedy1980 avatar jkennedy1980 commented on July 3, 2024

Moving the plist to LaunchAgents also worked for me. Thanks for the help :)

from kif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.