Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15178

MacOS X package version does not output to logfile

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Mac OS X

      Mac OS X package distribution version works great,
      but logs will never been output to a file or standard output.

      I'm also using a rpm version, and that does into /var/log/jenkins/jenkins.log.

      A log file is very useful to check what jenkins currently does.

      So, I suggest to let Mac OS X package version log to /var/log/jenkins/jenkins.log

      I've known that it's because of launchd plist file, which is not configured to output StandardOutPath/StandardErrorPath to a file.

          [JENKINS-15178] MacOS X package version does not output to logfile

          Seiji KOMATSU created issue -

          Seiji KOMATSU added a comment -

          Seiji KOMATSU added a comment - I've done pull request. https://github.com/jenkinsci/jenkins/pull/567

          Code changed in jenkins
          User: KOMATSU Seiji
          Path:
          osx/Library/Application Support/Jenkins/Uninstall.command
          osx/launchd_conf_daemon/org.jenkins-ci.plist
          osx/launchd_conf_jenkins/org.jenkins-ci.plist
          osx/scripts/postinstall-launchd
          osx/scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/jenkins/990e3c3bf210fbca8a0d5f186fd167c658bdb48c
          Log:
          JENKINS-15178: Improved logging on Mac OS X (now outputs to /var/log/jenkins/jenkins.log)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: KOMATSU Seiji Path: osx/Library/Application Support/Jenkins/Uninstall.command osx/launchd_conf_daemon/org.jenkins-ci.plist osx/launchd_conf_jenkins/org.jenkins-ci.plist osx/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/990e3c3bf210fbca8a0d5f186fd167c658bdb48c Log: JENKINS-15178 : Improved logging on Mac OS X (now outputs to /var/log/jenkins/jenkins.log)

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          osx/Library/Application Support/Jenkins/Uninstall.command
          osx/launchd_conf_daemon/org.jenkins-ci.plist
          osx/launchd_conf_jenkins/org.jenkins-ci.plist
          osx/scripts/postinstall-launchd
          osx/scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/jenkins/a36223cc7c30459ae218750d03549204549175d3
          Log:
          [FIXED JENKINS-15178] Merge branch 'pull-567'

          Compare: https://github.com/jenkinsci/jenkins/compare/454d0f2b874f...a36223cc7c30

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html osx/Library/Application Support/Jenkins/Uninstall.command osx/launchd_conf_daemon/org.jenkins-ci.plist osx/launchd_conf_jenkins/org.jenkins-ci.plist osx/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/a36223cc7c30459ae218750d03549204549175d3 Log: [FIXED JENKINS-15178] Merge branch 'pull-567' Compare: https://github.com/jenkinsci/jenkins/compare/454d0f2b874f...a36223cc7c30
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Seiji KOMATSU added a comment -

          Thank you for merging.

          Seiji KOMATSU added a comment - Thank you for merging.
          Seiji KOMATSU made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

          Sami Tikka added a comment -

          Jenkins logs to stdout/stderr, and for launch daemons the default destination for those is the system log. You can access the system log either by using the Console.app or reading the file /var/log/system.log

          This is the standard behavior on the Mac OS platform.

          If the goal is to make Jenkins on Mac OS behave exactly like Jenkins on Linux, you must also include provide your own logrotate system. Unlike most Linux distress, Mac OS does not provide logrotate for log files other than /var/log/system.log.

          Sami Tikka added a comment - Jenkins logs to stdout/stderr, and for launch daemons the default destination for those is the system log. You can access the system log either by using the Console.app or reading the file /var/log/system.log This is the standard behavior on the Mac OS platform. If the goal is to make Jenkins on Mac OS behave exactly like Jenkins on Linux, you must also include provide your own logrotate system. Unlike most Linux distress, Mac OS does not provide logrotate for log files other than /var/log/system.log.

          Seiji KOMATSU added a comment -

          I'll fix log rotating.

          Seiji KOMATSU added a comment - I'll fix log rotating.
          Seiji KOMATSU made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            comutt Seiji KOMATSU
            comutt Seiji KOMATSU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: