Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-72474] Additional informations on BFA scans #175

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

jgreffe
Copy link
Contributor

@jgreffe jgreffe commented Dec 14, 2023

https://issues.jenkins.io/browse/JENKINS-72474

Additional informations on ScanLogAction for plugins to know the current scan status:

  • startTime
  • endTime
  • exceptionMessage

Testing done

Submitter checklist

Preview Give feedback

/**
* To call when the scan is finished.
*/
public void finished() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would maybe make this package-private if possible or if not, add @Restricted(NoExternalUse.class).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See aa846cf


private Long endTime;

private Exception exception;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, exceptions are not always lightweight from a serialization standpoint. Maybe safer to just store Exception.toString as a String exceptionMessage or even boolean scanFailed and let people look at the log for details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See aa846cf

@jgreffe jgreffe requested a review from dwnusbaum December 18, 2023 13:17
@rsandell rsandell merged commit 13c1349 into jenkinsci:master Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants