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

Quiet all Perforce output when quiet:true.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • p4-plugin 1.10.4
      Jenkins 1.176.1

      When 'quiet' is set to true 'p4 reconcile' and preferably other commands also need to have the file list quashed.

      For example hide the 'refreshed' below :

      P4 Task: cleaning workspace to match have list.
      ... p4 reconcile -f -w /var/lib/jenkins/workspace/Pipeline_Quiet_True/... -p4 reconcile -f -w /var/lib/jenkins/workspace/Pipeline_Quiet_True/...
      
      //depot/Project1/sub1/f564#1 - /var/lib/jenkins/workspace/Pipeline_Quiet_True/sub1/f564 refreshed
      duration: (2ms)
      
      P4 Task: syncing files at change: 565
      ... p4 sync -q /var/lib/jenkins/workspace/Pipeline_Quiet_True/...@565 -p4 sync -q /var/lib/jenkins/workspace/Pipeline_Quiet_True/...@565
      duration: (2ms)
      

      Code:

      pipeline {
        agent { label 'master' }
        stages {
          stage("Repro") {
            steps {
      	p4sync charset: 'none', credential: 'JenkinsMaster', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: true, replace: true, tidy: false), source: depotSource('//depot/Project1/...')
            }
          }
        }
      

      When there are a few files to be reconciled it's not a problem but when there are 1000's this overloads the logs making them difficult to work with and diagnose problems.

       

            p4paul Paul Allen
            p4karl Karl Wirth
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: