Jenkins Workflow and Timestamp plugin

420 views
Skip to first unread message

Rinaldo DiGiorgio

unread,
Sep 21, 2015, 4:32:14 PM9/21/15
to Jenkins Users
Hi,

   Having time stamping in the Console Output and in the Workflow Steps would be very useful IMO.  Given the additional capabilities of workflow with steps and parallel, having a timestamp is very useful.  I installed the Timestamp Plugin and did not see any timestamps in my workflow job.  Is this the expected outcome?  If one were to want to add timestamps to workflow where would they go.  In the core plugins for the two areas of interest.


Console Output is not showing any timestamps.

Running: Allocate node : Body : End
Running: Allocate node : End
Running: Execute sub-workflows in parallel : Body : End
Running: Execute sub-workflows in parallel : End
Running: End of Workflow
Finished: SUCCESS

Workflow steps is not showing any timestamps.


Victor Martinez

unread,
Sep 21, 2015, 4:40:42 PM9/21/15
to Jenkins Users
It should be there:


Can you verify your plugins versions?

Cheers

Daniel Beck

unread,
Sep 21, 2015, 5:02:37 PM9/21/15
to jenkins...@googlegroups.com
IIRC it just needs to be added to the workflow using the snippet generator » General build wrapper.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/05cf5a10-0661-4283-8159-3dd2fcd05e9e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rinaldo DiGiorgio

unread,
Sep 21, 2015, 6:15:06 PM9/21/15
to Jenkins Users, m...@beckweb.net


On Monday, September 21, 2015 at 5:02:37 PM UTC-4, Daniel Beck wrote:
IIRC it just needs to be added to the workflow using the snippet generator » General build wrapper.



Thanks that cleared it up.  I am using the Jenkins Mesos plugin and trying to figure out where latencies are coming from and this plugin is a big help.  Thanks Victor. 

tarted by user anonymous
Running: Execute sub-workflows in parallel : Start
[Task One] Running: Parallel branch: Task One
[Task Two] Running: Parallel branch: Task Two
[Task One] Running: Allocate node : Start
[Task Two] Running: Allocate node : Start
[Task One] Still waiting to schedule task
[Task One] Waiting for next available executor
[Task Two] Still waiting to schedule task
[Task Two] Waiting for next available executor
[Task One] Running on mesos-jenkins-1bb8e9c1-451c-41b1-a1cd-32711ca29d05 in /scratch/jenkins/workspace/Case 1 - Basic multi-task job
[Task One] Running: Allocate node : Body : Start
[Task One] Running: General Build Wrapper : Start
[Task One] Running: General Build Wrapper : Body : Start
[Task One] Running: Print Message
00:00:23.354 [Task One] Task One
[Task One] Running: Shell Script
00:00:24.662 [Task One] [Case 1 - Basic multi-task job] Running shell script
00:00:25.104 [Task One] + uname -a
00:00:25.104 [Task One] Linux sca00anu 3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed Jun 25 15:27:43 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
00:00:25.104 [Task One] + sleep 120
[Task Two] Running on mesos-jenkins-4061014a-666b-4b47-b3ce-080b964b9640 in /scratch/jenkins/workspace/Case 1 - Basic multi-task job
[Task Two] Running: Allocate node : Body : Start
[Task Two] Running: General Build Wrapper : Start
[Task Two] Running: General Build Wrapper : Body : Start
[Task Two] Running: Print Message

One minute delay for second mesos job to start

00:01:35.043 [Task Two] Task Two
[Task Two] Running: Shell Script
00:01:36.234 [Task Two] [Case 1 - Basic multi-task job] Running shell script
00:01:36.625 [Task Two] + uname -a
00:01:36.625 [Task Two] Linux sca00beo3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed Jun 25 15:27:43 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
00:01:36.625 [Task Two] + sleep 120
Running: General Build Wrapper : Body : End
Running: General Build Wrapper : End
Running: Allocate node : Body : End
Running: Allocate node : End
Running: Execute sub-workflows in parallel : Body : End
Running: General Build Wrapper : Body : End
Running: General Build Wrapper : End
Running: Allocate node : Body : End
Running: Allocate node : End
Running: Execute sub-workflows in parallel : Body : End
Running: Execute sub-workflows in parallel : End
Running: End of Workflow
Finished: SUCCESS



BTW if you switch the console output to text view the time values are lost.

Thanks for your help!!!!

Reply all
Reply to author
Forward
0 new messages