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

0 просмотров
Перейти к первому непрочитанному сообщению

ankush.pandit@cerner.com (JIRA)

не прочитано,
11 июл. 2019 г., 14:43:0211.07.2019
– 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)

не прочитано,
11 июл. 2019 г., 14:57:0211.07.2019
– 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)

не прочитано,
11 июл. 2019 г., 15:00:0311.07.2019
– 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)

не прочитано,
11 июл. 2019 г., 15:02:0211.07.2019
– 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)

не прочитано,
11 июл. 2019 г., 15:03:0211.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
11 июл. 2019 г., 15:04:0311.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
11 июл. 2019 г., 15:04:0311.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
11 июл. 2019 г., 15:04:0311.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 09:30:0212.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 09:32:0112.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 09:55:0212.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 09:56:0212.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
12 июл. 2019 г., 09:59:0112.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
12 июл. 2019 г., 10:00:0212.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
12 июл. 2019 г., 10:02:0212.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 10:07:0112.07.2019
– jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

не прочитано,
12 июл. 2019 г., 10:14:0212.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 11:56:0212.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 17:21:0312.07.2019
– 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)

не прочитано,
12 июл. 2019 г., 18:07:0212.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
15 июл. 2019 г., 09:18:0315.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
15 июл. 2019 г., 09:18:0315.07.2019
– jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

не прочитано,
15 июл. 2019 г., 15:39:0215.07.2019
– 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)

не прочитано,
17 июл. 2019 г., 12:45:0117.07.2019
– jenkinsc...@googlegroups.com

ankush.pandit@cerner.com (JIRA)

не прочитано,
17 июл. 2019 г., 12:46:0217.07.2019
– 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)

не прочитано,
17 июл. 2019 г., 12:47:0117.07.2019
– 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)

не прочитано,
18 июл. 2019 г., 10:02:0418.07.2019
– jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

не прочитано,
18 июл. 2019 г., 10:02:0518.07.2019
– 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)

не прочитано,
18 июл. 2019 г., 10:58:0218.07.2019
– jenkinsc...@googlegroups.com
Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений