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

Allow piping output from XCode plugin through xcpretty

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • xcode-plugin
    • None

      Allow optional filtering out output from xcodebuild through xcpretty for less logs and clear output.
      It is not unusual to see multi-MB logs from XCode build which makes build log navigation (or just plain opening of) a pain because you have to download all this log.

      Optional flag to pipe output through xcpretty (with some very basic options) would tremendously increase readability of output, reduce build log size and make Jenkins even more fun to use.

      As of now, the best option is to use manual shell scripts and avoid XCode plugin - log size and readability could be that bad.

          [JENKINS-32699] Allow piping output from XCode plugin through xcpretty

          AnneTheAgile added a comment -

          I upvoted. Apple xcodebuild outputs are so horrendously unreadable that I agree, I'm thinking of running with the command line. I do already for some of my builds. I am not sure how it could be implemented? I have a very minor experience with plugins, if there were tips and it seemed easy I might be able to give it a go.

          AnneTheAgile added a comment - I upvoted. Apple xcodebuild outputs are so horrendously unreadable that I agree, I'm thinking of running with the command line. I do already for some of my builds. I am not sure how it could be implemented? I have a very minor experience with plugins, if there were tips and it seemed easy I might be able to give it a go.

          Andrey Regentov added a comment - - edited

          As far as I understand, now the only option to get pretty logs is to abandon use of xcode-plugin and call xcodebuild | xcpretty from shell.
          It would be nice to add the ability to pipe the main xcodebuild output.

          Setting | xcpretty as the Custom xcodebuild arguments just breaks everything, like that:

          [proj] $ /usr/bin/xcodebuild -scheme SCH -workspace WS.xcworkspace -configuration AdHoc build | xcpretty
          xcodebuild: error: Unknown build action '|'.
          Build step 'Xcode' marked build as failure
          

          Andrey Regentov added a comment - - edited As far as I understand, now the only option to get pretty logs is to abandon use of xcode-plugin and call xcodebuild | xcpretty from shell. It would be nice to add the ability to pipe the main xcodebuild output. Setting | xcpretty as the Custom xcodebuild arguments just breaks everything, like that: [proj] $ /usr/bin/xcodebuild -scheme SCH -workspace WS.xcworkspace -configuration AdHoc build | xcpretty xcodebuild: error: Unknown build action '|' . Build step 'Xcode' marked build as failure

            Unassigned Unassigned
            eakraly Pavel Punsky
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: