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.
[JENKINS-59750] Quiet all Perforce output when quiet:true.
Summary | Original: Quiet all Perforce file list output when quiet:false. | New: Quiet all Perforce file list output when quiet:true. |
Summary | Original: Quiet all Perforce file list output when quiet:true. | New: Quiet all Perforce output when quiet:true. |
Labels | Original: P4_VERIFY | New: P4_B P4_VERIFY |
Labels | Original: P4_B P4_VERIFY | New: P4_A P4_VERIFY |
In my 100's of job configurations and with the size of my source code, the '-q' on p4 reconcile puts 43,156 lines in EVERY jenkins log file.