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

Suppress default pipeline output

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Component/s: workflow-job-plugin
    • Labels:
      None
    • Environment:
      CloudBees Jenkins Enterprise 2.7.19.0.1
    • Similar Issues:

      Description

      Currently the pipeline plugin prints the steps into the console output, prefixed with [Pipeline]

      [Pipeline] node
      Running on Agent1 in C:\Jenkins\workspace\TEST JOB
      [Pipeline] {
      [Pipeline] withEnv
      [Pipeline] {
      [Pipeline] withCredentials
      [Pipeline] {
      [Pipeline] bat
      [TEST JOB] Running batch script
      [Pipeline] }
      [Pipeline] // withCredentials
      [Pipeline] }
      [Pipeline] // withEnv
      [Pipeline] }
      [Pipeline] // node
      

      Is it possible to have a flag somewhere to disable this logging, either in the pipeline itself or configurable at a master level. I'd like to remove this extra logging as it adds too much information to our output. Ideally this should read:

      Running on Agent1 in C:\Jenkins\workspace\TEST JOB
      
      [TEST JOB] Running batch script
      

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Please file issues under the component pipeline if you do not actually know the plugin implementing a given aspect of behavior.

            Show
            jglick Jesse Glick added a comment - Please file issues under the component pipeline if you do not actually know the plugin implementing a given aspect of behavior.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Marc MacIntyre
            Path:
            src/main/java/org/jenkinsci/plugins/workflow/job/console/WorkflowRunConsoleNote.java
            http://jenkins-ci.org/commit/workflow-job-plugin/d0e19f62c377bbcace954176f65297b958c08dc6
            Log:
            Add the CSS class "pipeline-annotated" to all pipeline annotated console messages. This will allow the administrator to override the display of these messages using the Simple Theme Plugin.

            This should fix JENKINS-41845

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marc MacIntyre Path: src/main/java/org/jenkinsci/plugins/workflow/job/console/WorkflowRunConsoleNote.java http://jenkins-ci.org/commit/workflow-job-plugin/d0e19f62c377bbcace954176f65297b958c08dc6 Log: Add the CSS class "pipeline-annotated" to all pipeline annotated console messages. This will allow the administrator to override the display of these messages using the Simple Theme Plugin. This should fix JENKINS-41845
            Hide
            svanoort Sam Van Oort added a comment -

            Resolved as of 2.18 by supporting use of the Simple Theme Plugin to hide these (they now include the pipeline-annotated class).

            Show
            svanoort Sam Van Oort added a comment - Resolved as of 2.18 by supporting use of the Simple Theme Plugin to hide these (they now include the pipeline-annotated class).
            Hide
            svanoort Sam Van Oort added a comment -

            Implementation to add the HTML class.

            Show
            svanoort Sam Van Oort added a comment - Implementation to add the HTML class.
            Hide
            djviking Sverre Moe added a comment -

            Examples for using the CSS class pipeline-annotated would be nice.

            .pipeline-annotated {
            
            }
            
            Show
            djviking Sverre Moe added a comment - Examples for using the CSS class pipeline-annotated would be nice. .pipeline-annotated { }

              People

              • Assignee:
                Unassigned
                Reporter:
                cbanbery Callum Banbery
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: