[JIRA] (JENKINS-58448) History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

0 views
Skip to first unread message

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 2:43:02 PM7/11/19
to jenkinsc...@googlegroups.com
Ankush Pandit created an issue
 
Jenkins / Bug JENKINS-58448
History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-07-11 18:42
Priority: Minor Minor
Reporter: Ankush Pandit

See details here https://superuser.com/questions/1458345/history-only-seems-to-be-pointing-to-the-current-build-when-using-warnings-ng-je

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

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 11, 2019, 2:57:02 PM7/11/19
to jenkinsc...@googlegroups.com
Ulli Hafner closed an issue as Incomplete
 

Please add an issue description that actually shows a problem in the plugin.

Change By: Ulli Hafner
Status: Open Closed
Resolution: Incomplete

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:00:03 PM7/11/19
to jenkinsc...@googlegroups.com
Ankush Pandit commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

Did you click on the provided link? It has screen shots of code and the issue..

 

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:02:02 PM7/11/19
to jenkinsc...@googlegroups.com
Ankush Pandit updated an issue
 
Change By: Ankush Pandit
See details here [https://superuser.com/questions/1458345/history-only-seems-to-be-pointing-to-the-current-build-when-using-warnings-ng-je]

 
 
History only seems to be pointing to the current build when using Warnings NG jenkin plugin and JenkinsFile pipeline.

Here is some sudo code from our JenkinsFile [Jenkinsfile Part1|https://i.stack.imgur.com/jrw0N.png] [Jenkinsfile Part2|https://i.stack.imgur.com/nIi8P.png] What we are seeing is that our history graph only seems to be depicting what was caught on the current build and is missing the info from previous builds.

Does anyone has any idea on why this is..

[What we are seeing|https://i.stack.imgur.com/pheVR.png] [Even when we have multiple builds that were run before we introduced warnings ng plugin|https://i.stack.imgur.com/JjKyX.png]

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:03:02 PM7/11/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:04:03 PM7/11/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:04:03 PM7/11/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 11, 2019, 3:04:03 PM7/11/19
to jenkinsc...@googlegroups.com
Ankush Pandit updated an issue
See details here [https://superuser.com/questions/1458345/history-only-seems-to-be-pointing-to-the-current-build-when-using-warnings-ng-je]

 
 
History only seems to be pointing to the current build when using Warnings NG jenkin plugin and JenkinsFile pipeline.

Here is some sudo code from our JenkinsFile [Jenkinsfile Part1|https://i.stack.imgur.com/jrw0N.png] [Jenkinsfile Part2|https://i.stack.imgur.com/nIi8P.png] What we are seeing is that our history graph only seems to be depicting what was caught on the current build and is missing the info from previous builds.

Does anyone has any idea on why this is..

[Even when we have multiple builds that were run before we introduced warnings ng plugin|https://i.stack.imgur.com/JjKyX.png]

!image-2019-07-11-14-03-35-746.png!

 

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 12, 2019, 9:30:02 AM7/12/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
See details here [https://superuser.com/questions/1458345/history-only-seems-to-be-pointing-to-the-current-build-when-using-warnings-ng-je]

 
 
History only seems to be pointing to the current build when using Warnings NG jenkin plugin and JenkinsFile pipeline.

Here is some sudo code from our JenkinsFile [Jenkinsfile Part1|https://i.stack.imgur.com/jrw0N.png] [Jenkinsfile Part2|https://i.stack.imgur.com/nIi8P.png] What we are seeing is that our history graph only seems to be depicting what was caught on the current build and is missing the info from previous builds.

Does anyone has any idea on why this is..

[Even when we have multiple builds that were run before we introduced warnings ng plugin|https://i.stack.imgur.com/JjKyX.png]

!image-2019-07-11-14-03-35-746.png!

 
Add Comment Add Comment
 

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 12, 2019, 9:32:01 AM7/12/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

Are the builds < #161 still available? Did you enable the reports for some builds < #161?

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 9:55:02 AM7/12/19
to jenkinsc...@googlegroups.com
Ankush Pandit updated an issue
 
Change By: Ankush Pandit
History only seems to be pointing to the current build when using Warnings NG jenkin plugin and JenkinsFile pipeline.

Here is some sudo code from our JenkinsFile [Jenkinsfile Part1|https://i.stack.imgur.com/jrw0N.png] [Jenkinsfile Part2|https://i.stack.imgur.com/nIi8P.png] What we are seeing is that our history graph only seems to be depicting what was caught on the current build and is missing the info from previous builds.

Does anyone has any idea on why this is..

[Even when we have multiple builds that were run before we introduced with warnings ng plugin|https://i.stack.imgur.com/JjKyX.png]

!image-2019-07-11-14-03-35-746.png!

 

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 9:56:02 AM7/12/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 9:59:01 AM7/12/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 10:00:02 AM7/12/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 10:02:02 AM7/12/19
to jenkinsc...@googlegroups.com
Ankush Pandit commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

Looks like these are available. Can you please explain what you mean by available? We do clean up our workspaces each time after the build using the following code.

 

cleanWs()
dir("${env.WORKSPACE}@tmp")
{| |deleteDir()| |}|

|dir("${env.WORKSPACE}@script")|

|{| |deleteDir()| |}
dir("${env.WORKSPACE}@script@tmp")
{| |deleteDir()| }

 

Also you can see that warnings ng config change was introduced in build 159. Also here are the snapshots from build 160

And 159

 

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 10:07:01 AM7/12/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 12, 2019, 10:14:02 AM7/12/19
to jenkinsc...@googlegroups.com

The data is derived from the Jenkins objects. So if you have an analysis action for #159 and #160, then they should appear in the chart as well. 

ankush.pandit@cerner.com (JIRA)

unread,
Jul 12, 2019, 11:56:02 AM7/12/19
to jenkinsc...@googlegroups.com

Follow up questions.

So these Jenkins objects, do they get deleted if we delete the workspace? Where are they stored?

If there were any errors while deriving them, where would we see them?

How else can I help in figuring out this issue?

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 12, 2019, 5:21:03 PM7/12/19
to jenkinsc...@googlegroups.com

No, they should not. They are stored in the build folder on the Jenkins master.

You can call JSON.stringify(echarts.getInstanceByDom(document.getElementById("tools-trend-chart")).getOption()) in the JS console of your browser to see the data of the chart. Paste the JSON here to see what is going on.

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 12, 2019, 6:07:02 PM7/12/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 15, 2019, 9:18:03 AM7/15/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 15, 2019, 9:18:03 AM7/15/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 15, 2019, 3:39:02 PM7/15/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

Hmm, the x-axis contains the label "07-11", can you please add a file with build numbers as label? Select the button #.

Are there any exceptions in Jenkins log?

ankush.pandit@cerner.com (JIRA)

unread,
Jul 17, 2019, 12:45:01 PM7/17/19
to jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

unread,
Jul 17, 2019, 12:46:02 PM7/17/19
to jenkinsc...@googlegroups.com
Ankush Pandit commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

Added the result when displaying the build number on the graph. FYI, This problem occurs with build dates as well. I do not know how to check the jenkins logs, can you please provide instructions?

ankush.pandit@cerner.com (JIRA)

unread,
Jul 17, 2019, 12:47:01 PM7/17/19
to jenkinsc...@googlegroups.com
Ankush Pandit edited a comment on Bug JENKINS-58448
Added the result when displaying the build number on the graph. FYI, This problem occurs with build dates as well. I do not know how to check the jenkins logs, can you please provide instructions on how to tail them ?

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 18, 2019, 10:02:04 AM7/18/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 18, 2019, 10:02:05 AM7/18/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-58448
 
Re: History only seems to be pointing to the current build when using Warnings NG jenkin plugin and pipeline

I think I found the problem. In your pipeline you use a variable ID (using the system time). This is wrong you need to use the same ID for all builds, then the results will be correctly mapped. It is clear, if you change the ID in every build then you will never found a sequence of matching builds.

ankush.pandit@cerner.com (JIRA)

unread,
Jul 18, 2019, 10:58:02 AM7/18/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages