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

timestamped logs not available in all workflow logs.

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • timestamper-plugin
    • jenkins 1.609.2
      workflow 1.10-beta1
      timestamper 1.7.2

      it is not possible to wrap all the logs from workflow with timestamps.

      if you use

              wrap([$class: 'TimestamperBuildWrapper']) {
                  // commands here
              }
      

      outside of a node block the workflow will fail with

      org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
      	at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:126)
      

      The reason for wrapping outside of a node is that you may want to be using some steps that do not require a workspace - e.g.
      echo before and after an input.

          [JENKINS-30142] timestamped logs not available in all workflow logs.

          James Nord created issue -
          Jesse Glick made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Issue Type Original: Improvement [ 4 ] New: New Feature [ 2 ]
          Labels New: workflow
          Steven G Brown made changes -
          Assignee Original: Steven G Brown [ stevengbrown ]
          Steven G Brown made changes -
          Assignee New: Steven G Brown [ stevengbrown ]
          Steven G Brown made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165229 ] New: JNJira + In-Review [ 197663 ]
          Andrew Bayer made changes -
          Labels Original: workflow New: pipeline workflow
          Andrew Bayer made changes -
          Labels Original: pipeline workflow New: pipeline
          Mark Lagendijk made changes -
          Link New: This issue relates to JENKINS-44741 [ JENKINS-44741 ]
          Jakub Bochenski made changes -
          Link New: This issue relates to JENKINS-44771 [ JENKINS-44771 ]

            stevengbrown Steven G Brown
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: