[JIRA] (JENKINS-56457) Regression in timestamper 1.9: Start of maven plugins is logged with different format

5 views
Skip to first unread message

f.modler@gmx.net (JIRA)

unread,
Mar 7, 2019, 6:49:02 AM3/7/19
to jenkinsc...@googlegroups.com
Falko Modler created an issue
 
Jenkins / Bug JENKINS-56457
Regression in timestamper 1.9: Start of maven plugins is logged with different format
Issue Type: Bug Bug
Assignee: Steven G Brown
Components: timestamper-plugin
Created: 2019-03-07 11:48
Environment: Jenkins 2.150.3
All Pipeline plugins pretty up to date
Priority: Minor Minor
Reporter: Falko Modler

After the upgrade from 1.8.10 to 1.9 I am seeing strange format changes:

1.8.10
12:25:11 [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ root ---
12:25:11 [INFO] Clean is skipped.
12:25:11 [INFO] Execution of maven-clean-plugin:3.0.0:clean (default-clean) @ root took 0.063s
12:25:11 [INFO] 
12:25:11 [INFO] --- maven-enforcer-plugin:3.0.0-M1-MMS1:enforce (enforce-versions) @ root ---
12:25:11 [INFO] Skipping Rule Enforcement.
12:25:11 [INFO] Execution of maven-enforcer-plugin:3.0.0-M1-MMS1:enforce (enforce-versions) @ root took 0.125s
1.9
[2019-03-07T11:40:27.751Z] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ root ---
12:40:27  [INFO] Clean is skipped.
12:40:27  [INFO] Execution of maven-clean-plugin:3.0.0:clean (default-clean) @ root took 0.049s
12:40:27  [INFO] 
[2019-03-07T11:40:27.751Z] [INFO] --- maven-enforcer-plugin:3.0.0-M1-MMS1:enforce (enforce-versions) @ root ---
12:40:27  [INFO] Skipping Rule Enforcement.
12:40:27  [INFO] Execution of maven-enforcer-plugin:3.0.0-M1-MMS1:enforce (enforce-versions) @ root took 0.093s

As you can see, the first output of/for a plugin is using a much longer format, whereever this is coming from.

The pipeline in question is using timestamps() in the options block of the pipeline.

Once I enable the new option "Enabled for all Pipeline builds", the problem vanishes!

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

f.modler@gmx.net (JIRA)

unread,
Mar 7, 2019, 6:50:02 AM3/7/19
to jenkinsc...@googlegroups.com
Falko Modler updated an issue
Change By: Falko Modler
Environment: Jenkins 2.150.3
All Pipeline plugins pretty
much up to date

jenkins@spoor.cc (JIRA)

unread,
Mar 8, 2019, 2:21:02 AM3/8/19
to jenkinsc...@googlegroups.com
Ben Spoor commented on Bug JENKINS-56457
 
Re: Regression in timestamper 1.9: Start of maven plugins is logged with different format

Experiencing the same issue, this seems to cause that the IAR console parser in the warnings plugin to get file paths with a timestamp prefixed such as: [2019-03-07T21:31:48.820Z] D:/myworkspace/myfile.c

leemeador@java.net (JIRA)

unread,
Jun 14, 2019, 12:49:02 PM6/14/19
to jenkinsc...@googlegroups.com

Seeing a similar issue.

CB Jenkins 2.164, Timestamp plugin 1.9.

If I go to build job and append /timestamps/?appendlog&elapsed=HH:mm:ss.s it does not show elapsed time and uses the long format UTC time.

It looks like this:

[Pipeline] sh
[2019-06-14T05:36:15.738Z] + env
[2019-06-14T05:36:15.738Z] + sort
[2019-06-14T05:36:15.738Z] BUILD_DISPLAY_NAME=#740
[2019-06-14T05:36:15.738Z] BUILD_ID=740
[2019-06-14T05:36:15.738Z] BUILD_NUMBER=740

Similar format appears in api calls:

String query = 'elapsed=HH:mm:ss.S&appendLog&startLine=-50'
BufferedReader reader = hudson.plugins.timestamper.api.TimestamperAPI.get().read(build, query)
reader.withCloseable {
    while ((line = reader.readLine()) != null) {
        logLines.add(line)
        println "LOG line read: " + line
    }
}

Output is

[Pipeline] echo
11:13:48  LOG line read:   [2019-06-14T04:01:28.865Z] Removing Streams/Foundation/SequenceConsumer@tmp/
[Pipeline] echo
11:13:48  LOG line read:   [2019-06-14T04:01:28.865Z] Removing Streams/Foundation/SequenceConsumerHandler/build/
[Pipeline] echo
11:13:48  LOG line read:   [2019-06-14T04:01:28.865Z] Removing Streams/Foundation/SequenceConsumerHandler/com.aa.lookahead.crew.sequence.parser/SequenceMarshaller/

me@basilcrow.com (JIRA)

unread,
Feb 25, 2020, 9:23:04 PM2/25/20
to jenkinsc...@googlegroups.com

Likely a duplicate of JENKINS-59636, for which I have opened a PR with a fix. I will keep this bug open pending the release of the fix for JENKINS-59636 to verify that the issue is resolved.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

me@basilcrow.com (JIRA)

unread,
Feb 25, 2020, 9:24:03 PM2/25/20
to jenkinsc...@googlegroups.com

me@basilcrow.com (JIRA)

unread,
Mar 3, 2020, 11:04:04 AM3/3/20
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages