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

          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

          Seiji KOMATSU added a comment -

          Thank you for merging.

          Seiji KOMATSU added a comment - Thank you for merging.

          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 added a comment -

          I've requested pull-727, which fixes log rotation by newsyslog.
          https://github.com/jenkinsci/jenkins/pull/727

          Thanks for the advice.

          Seiji KOMATSU added a comment - I've requested pull-727, which fixes log rotation by newsyslog. https://github.com/jenkinsci/jenkins/pull/727 Thanks for the advice.

          Code changed in jenkins
          User: KOMATSU Seiji
          Path:
          osx/Library/Application Support/Jenkins/Uninstall.command
          osx/scripts/postinstall-launchd
          osx/scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/jenkins/430667e42f3e6bf5b90badfbcb1a25626a39277b
          Log:
          JENKINS-15178: Enabled log rotation on Mac OSX

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: KOMATSU Seiji Path: osx/Library/Application Support/Jenkins/Uninstall.command osx/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/430667e42f3e6bf5b90badfbcb1a25626a39277b Log: JENKINS-15178 : Enabled log rotation on Mac OSX

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          osx/Library/Application Support/Jenkins/Uninstall.command
          osx/scripts/postinstall-launchd
          osx/scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/jenkins/2bfc2bb199a3d04155cb292838398419e32b3135
          Log:
          [FIXED JENKINS-15178] Merged pull request #727

          Compare: https://github.com/jenkinsci/jenkins/compare/06348091cd05...2bfc2bb199a3

          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/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/2bfc2bb199a3d04155cb292838398419e32b3135 Log: [FIXED JENKINS-15178] Merged pull request #727 Compare: https://github.com/jenkinsci/jenkins/compare/06348091cd05...2bfc2bb199a3

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

          Originally-From: jenkins-ci.org/commit/core/990e3c3bf210fbca8a0d5f186fd167c658bdb48c

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

          Code changed in jenkins
          User: KOMATSU Seiji
          Path:
          Library/Application Support/Jenkins/Uninstall.command
          scripts/postinstall-launchd
          scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/packaging/67e3f6968e85c32bdf23e0fbdb9147b6d2d8b61b
          Log:
          JENKINS-15178: Enabled log rotation on Mac OSX

          Originally-From: jenkins-ci.org/commit/core/430667e42f3e6bf5b90badfbcb1a25626a39277b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: KOMATSU Seiji Path: Library/Application Support/Jenkins/Uninstall.command scripts/postinstall-launchd scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/packaging/67e3f6968e85c32bdf23e0fbdb9147b6d2d8b61b Log: JENKINS-15178 : Enabled log rotation on Mac OSX Originally-From: jenkins-ci.org/commit/core/430667e42f3e6bf5b90badfbcb1a25626a39277b

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          Library/Application Support/Jenkins/Uninstall.command
          scripts/postinstall-launchd
          scripts/postinstall-launchd-jenkins
          http://jenkins-ci.org/commit/packaging/dceab46305a878b7ccf34950483fcac7b841bdc3
          Log:
          [FIXED JENKINS-15178] Merged pull request #727

          Originally-From: jenkins-ci.org/commit/core/2bfc2bb199a3d04155cb292838398419e32b3135

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: Library/Application Support/Jenkins/Uninstall.command scripts/postinstall-launchd scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/packaging/dceab46305a878b7ccf34950483fcac7b841bdc3 Log: [FIXED JENKINS-15178] Merged pull request #727 Originally-From: jenkins-ci.org/commit/core/2bfc2bb199a3d04155cb292838398419e32b3135

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

              Created:
              Updated:
              Resolved: