Closed bitle closed 5 months ago
We experienced the same issue, but unfortunately reverting to the old version did not resolve our issues.
@bitle, @jeohist, thank you for reporting this. The issue was resolved in release v6.0.1. Please try updating and let me know if the issue persists. Thank you!
@nikita-tkachenko-datadog we upgraded the ci.jenkins.io instance from 6.0.0 to 6.0.1 after the stackoverflow error we encountered this afternoon cf https://github.com/jenkinsci/datadog-plugin/issues/389#issuecomment-1932271114, but unfortunately all previous jobs are still marked as "failed" in 1970.
Ex: https://ci.jenkins.io/job/Infra/job/pipeline-library/job/master/ (previous builds have successfully finished while they appear failed)
Hi @lemeurherve,
Could you please provide some additional info?
build.xml
of a job that is displayed incorrectly? I believe they're stored at $JENKINS_HOME/jobs/<JOB_NAME>/builds/<BUILD_NUMBER>/build.xml
. If the entire file cannot be provided because it contains sensitive info, providing a part of it would be helpful as well.Thank you!
I'll provide you these elements first thing in the morning tomorrow.
As a side note, https://issues.jenkins.io/browse/JENKINS-66328 describes a similar issue. Some of the reports in there are from 25/01/202 (which is before Datadog plugin v6.0.0 was released) and the reporters claim that they're not using the Datadog plugin.
So while there is a plugin data deserialisation problem in v6.0.0, it is possible that the date/status display issue is caused by something else.
or in the Manage Old Data screen? If yes, could you please share them?
First (quick) feedback on ci.jenkins.io (I'll let @lemeurherve provides more details with logs and/or build.xml
excerpts) : after upgrading datadog
from 6.0.0 to 6.0.1, we had the following warning in the "Manage Old Data" screen:
Thanks for the details, @dduportal! I have managed to reproduce this in a local Jenkins instance.
The CannotResolveClassException
checks-out: it indeed refers to a class that is no longer there in the new release of the plugin.
"It is okay to leave unreadable data in these items/records, as Jenkins will simply ignore it" - that part was also true for me. While I saw the error in the Manage Old Data screen, the build in question had correct date and status, and looked normal.
The v6.0.0 version of the plugin had a different issue, where it could not deserialise one of the plugin's action classes because its format has changed. In some cases this led to the build data stored on disk being rewritten with default values (timestamp 0, status FAILED, etc).
To sum up:
CannotResolveClassException
errors may be displayed)
Describe the bug Today I upgraded all plugins in jenkins to the latest version. Among them is the most recent version of Datadog Plugin. After jenkins restarted all Successful builds of classic jobs show up as failed. I can still see in the logs that the result was SUCCESS. Here's what I found in the logs:
I reverted back to the previous version and it fixed my issues.
To Reproduce I didn't try to reproduce this issue. I can provide my job configs and build history if needed.
Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Environment and Versions (please complete the following information): Jenkins 2.426.3 Datadog 5.6.2 -> 6.0.0
Additional context Add any other context about the problem here.