-
Notifications
You must be signed in to change notification settings - Fork 274
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-73164] Fix record issues step ignores source code retention parameter #1809
[JENKINS-73164] Fix record issues step ignores source code retention parameter #1809
Conversation
correctly handle the sourceCodeRetention parameter
The test ensures that the plugin adheres to the retention policy and properly cleans up files after the build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost done. Thanks for the PR!
plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/StepsOnAgentITest.java
Outdated
Show resolved
Hide resolved
plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/StepsOnAgentITest.java
Show resolved
Hide resolved
plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/StepsOnAgentITest.java
Outdated
Show resolved
Hide resolved
…s/StepsOnAgentITest.java fixed comment typo Co-authored-by: Ullrich Hafner <ullrich.hafner@gmail.com>
…s/StepsOnAgentITest.java deleted Co-authored-by: Ullrich Hafner <ullrich.hafner@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1809 +/- ##
============================================
+ Coverage 82.55% 82.65% +0.09%
- Complexity 1352 1355 +3
============================================
Files 248 248
Lines 5212 5213 +1
Branches 401 401
============================================
+ Hits 4303 4309 +6
+ Misses 801 796 -5
Partials 108 108 ☔ View full report in Codecov by Sentry. |
final FilePath workspace, final Set<String> sourceDirectories, | ||
final SourceCodeRetention sourceCodeRetention, final Run<?, ?> run, | ||
final FilePath jenkinsRootDir, final TaskListener listener, | ||
final String scm, final BlameMode blameMode, final PostProcessingMode postProcessingMode, | ||
final boolean quiet) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unrelated changes
@@ -139,8 +129,7 @@ private AnnotatedReport postProcessReport(final Report report) throws IOExceptio | |||
AnnotatedReport result = workspace.act(createPostProcessor(report)); | |||
copyAffectedFiles(result.getReport(), createAffectedFilesFolder(result.getReport())); | |||
return result; | |||
} | |||
else { | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unrelated changes
@@ -164,8 +153,7 @@ private Blamer createBlamer(final Report report) { | |||
if (blameMode == BlameMode.DISABLED) { | |||
report.logInfo("Skipping SCM blames as requested"); | |||
return new NullBlamer(); | |||
} | |||
else { | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unrelated changes
plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesScanner.java
Outdated
Show resolved
Hide resolved
@@ -346,8 +331,7 @@ private void resolvePackageNames(final Report report) { | |||
try { | |||
PackageNameResolver resolver = new PackageNameResolver(); | |||
resolver.run(report, getCharset()); | |||
} | |||
catch (InvalidPathException exception) { | |||
} catch (InvalidPathException exception) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you reformatted the whole source with the wrong style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its the intellij on gitpod who keeps doing it , I disabled the default settings but each time I have the same update of white spaces when I added the else block,
do I update the formatting of else and catch to its original and I commit again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compare your changes with main and revert everything that is unrelated.
@@ -90,13 +89,36 @@ void shouldRecordOutputOfParallelSteps() { | |||
if (JAVA_ID.equals(actions.get(0).getId())) { | |||
first = actions.get(0); | |||
second = actions.get(1); | |||
} | |||
else { | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/StepsOnAgentITest.java
Show resolved
Hide resolved
…suesScanner.java fix code formatting Co-authored-by: Ullrich Hafner <ullrich.hafner@gmail.com>
…ceCodeRetention-parameter
Thanks! |
recordIssues
step to correctly honor thesourceCodeRetention
parameter.Submitter checklist