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

timestamped logs not available in all workflow logs.

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: timestamper-plugin
    • Labels:
    • Environment:
      jenkins 1.609.2
      workflow 1.10-beta1
      timestamper 1.7.2
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevengbrown Steven G Brown
                Reporter:
                teilo James Nord
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: