[JIRA] [timestamper-plugin] (JENKINS-30142) timestamped logs not available in all workflow logs.

53 views
Skip to first unread message

teilo@java.net (JIRA)

unread,
Aug 26, 2015, 5:06:02 AM8/26/15
to jenkinsc...@googlegroups.com
James Nord created an issue
 
Jenkins / Improvement JENKINS-30142
timestamped logs not available in all workflow logs.
Issue Type: Improvement Improvement
Assignee: stevengbrown
Components: timestamper-plugin, workflow-plugin
Created: 26/Aug/15 9:05 AM
Environment: jenkins 1.609.2
workflow 1.10-beta1
timestamper 1.7.2
Priority: Minor Minor
Reporter: James Nord

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Aug 31, 2015, 4:15:02 PM8/31/15
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Jenkins / New Feature JENKINS-30142

Only possible with a custom Workflow step. SimpleBuildWrapper can only work inside node due to its assumption that the wrapper needs a workspace and associated APIs.

Change By: Jesse Glick
Issue Type: Improvement New Feature
Component/s: workflow-plugin
Labels: workflow

stevengbrown@java.net (JIRA)

unread,
Oct 27, 2015, 11:16:02 PM10/27/15
to jenkinsc...@googlegroups.com
stevengbrown assigned an issue to Unassigned
Change By: stevengbrown
Assignee: stevengbrown

stevengbrown@java.net (JIRA)

unread,
May 15, 2016, 2:12:01 AM5/15/16
to jenkinsc...@googlegroups.com

stevengbrown@java.net (JIRA)

unread,
May 15, 2016, 2:15:02 AM5/15/16
to jenkinsc...@googlegroups.com
Steven G Brown resolved as Fixed
 

Now possible with Timestamper 1.8.1.

timestamps {
echo 'hello from outside the node'
node

{ echo 'hello from inside the node' }

}

Change By: Steven G Brown
Status: Open Resolved
Resolution: Fixed

stevengbrown@java.net (JIRA)

unread,
May 15, 2016, 2:15:03 AM5/15/16
to jenkinsc...@googlegroups.com
Now possible with Timestamper 1.8.1.

{code}
timestamps {
  echo 'hello from outside the node'
  node {
    echo 'hello from inside the node'
  }
}

{code}
Reply all
Reply to author
Forward
0 new messages