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

Add access to android log during build (UI + parsing for messages)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be helpful to have access to the android log during the build operation.
      My usecase would be to parse the log output to find out when my (native) process has finished.
      Currently I have to use "sleep" and hope that I have captured all I need.
      But also online, visual inspection during the build like it is already possible for the build host
      console output would be helpful.

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          The logcat output gets written to a temporary file during the build, and is then archived at the end.

          It should probably be simple to expose an environment variable which points to the temporary filename.
          Would that be enough for your use case?

          Show
          orrc Christopher Orr added a comment - The logcat output gets written to a temporary file during the build, and is then archived at the end. It should probably be simple to expose an environment variable which points to the temporary filename. Would that be enough for your use case?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
          http://jenkins-ci.org/commit/android-emulator-plugin/25a226872ff184b5ea4546465762b15b8e6fdf93
          Log:
          [FIXED JENKINS-12572] Add environment variable pointing to temporary logcat file during a build.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java http://jenkins-ci.org/commit/android-emulator-plugin/25a226872ff184b5ea4546465762b15b8e6fdf93 Log: [FIXED JENKINS-12572] Add environment variable pointing to temporary logcat file during a build.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.9 has been released, which includes this fix.

          You can find the temporary logcat file during a build via the environment variable ANDROID_TMP_LOGCAT_FILE.

          Show
          orrc Christopher Orr added a comment - Version 2.9 has been released, which includes this fix. You can find the temporary logcat file during a build via the environment variable ANDROID_TMP_LOGCAT_FILE .

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              stefan_sablatnoeg Stefan Sablatnög
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: