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

Quiet mode for clean checkout (not using update)

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • cvs-plugin
    • None
    • Jenkins 1.8.2
      CVS Plugin ver 2.5

      When the 'use update' checkbox is unchecked, whole (generally unessential) output of cvs checkout gets printed to console.

      Suggested improvement:
      'quiet mode' switch could be provided for -q or -Q option/flag.

      This switch will give user more control as during normal operation the cvs output can be restricted to a minimum; and during debug, everything can be blurted out to the console.

          [JENKINS-15220] Quiet mode for clean checkout (not using update)

          As per your previous defect, the issue is being caused by CVS printing progress commands to System.err, and info commands to System.out. -Q/-q only affects System.out, we'd have to catch System.err and filter it if we wanted to restrict the output, but then we have to be careful that we're not hiding any error messages. This would be covered by the current 'Show All CVS Output' checkbox, but isn't something that can be modified by changing the CVS command we run.

          Michael Clarke added a comment - As per your previous defect, the issue is being caused by CVS printing progress commands to System.err, and info commands to System.out. -Q/-q only affects System.out, we'd have to catch System.err and filter it if we wanted to restrict the output, but then we have to be careful that we're not hiding any error messages. This would be covered by the current 'Show All CVS Output' checkbox, but isn't something that can be modified by changing the CVS command we run.

          Deepak Mahale added a comment -

          Hi again,

          I get more than 1.8k lines of output like the following

          Started by user anonymous
          Building in workspace C:\Program Files\Jenkins\jobs\MV_Autobuild\workspace
          cvs checkout -P -r TEST_BRANCH_VS2008_MV_BRANCH -d MediaViewer NCR/ImageMark/MediaViewer
          cvs checkout: Updating MediaViewer
          cvs checkout: Updating MediaViewer/Make
          cvs checkout: Updating MediaViewer/ant_scripts
          cvs checkout: Updating MediaViewer/src
          cvs checkout: Updating MediaViewer/src/ConfigUpdator
          cvs checkout: Updating MediaViewer/src/Fleet
          cvs checkout: Updating MediaViewer/src/Fleet/Shared
          cvs checkout: Updating MediaViewer/src/Fleet/mvimpflt
          cvs checkout: Updating MediaViewer/src/MVDbCons

          Is the -q flag enabled by default?
          If yes than should i be getting this much of output?

          How can i check if the command has -q or -Q enabled?

          Thanks & Regards

          Deepak

          Deepak Mahale added a comment - Hi again, I get more than 1.8k lines of output like the following Started by user anonymous Building in workspace C:\Program Files\Jenkins\jobs\MV_Autobuild\workspace cvs checkout -P -r TEST_BRANCH_VS2008_MV_BRANCH -d MediaViewer NCR/ImageMark/MediaViewer cvs checkout: Updating MediaViewer cvs checkout: Updating MediaViewer/Make cvs checkout: Updating MediaViewer/ant_scripts cvs checkout: Updating MediaViewer/src cvs checkout: Updating MediaViewer/src/ConfigUpdator cvs checkout: Updating MediaViewer/src/Fleet cvs checkout: Updating MediaViewer/src/Fleet/Shared cvs checkout: Updating MediaViewer/src/Fleet/mvimpflt cvs checkout: Updating MediaViewer/src/MVDbCons Is the -q flag enabled by default? If yes than should i be getting this much of output? How can i check if the command has -q or -Q enabled? Thanks & Regards Deepak

          The -q option is set if you don't have the 'Show All CVS Output' option set on the Job Config Screen.

          The "cvs checkout: Updating MediaViewer/src/MVDbCons" lines are what I'm referring to with my comment on CVS sending status to error output. This is not filtered by flags on the CVS command so no config is going to change this. We can't just ignore the error output since it may show failure messages but I am looking at how we can send it to a log (rather than the build console) to limit the number of lines during each build.

          Michael Clarke added a comment - The -q option is set if you don't have the 'Show All CVS Output' option set on the Job Config Screen. The "cvs checkout: Updating MediaViewer/src/MVDbCons" lines are what I'm referring to with my comment on CVS sending status to error output. This is not filtered by flags on the CVS command so no config is going to change this. We can't just ignore the error output since it may show failure messages but I am looking at how we can send it to a log (rather than the build console) to limit the number of lines during each build.

          Deepak Mahale added a comment -

          Thanks a lot Michael, it cleared my misunderstanding about the output that i was seeing.
          And all the best for the logging improvement

          Deepak Mahale added a comment - Thanks a lot Michael, it cleared my misunderstanding about the output that i was seeing. And all the best for the logging improvement

            Unassigned Unassigned
            deepak Deepak Mahale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: