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

the perform method should be passing the loop-variable 'moduleBuild' to ... #12

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

jwmach1
Copy link
Contributor

@jwmach1 jwmach1 commented Nov 26, 2013

From the junit-attachements plugin we see a contradiction between the

  • hudson.tasks.junit.TestDataPublisher
  • hudson.tasks.junit.TestResultAction.Data

The TestDataPublisher (without this change) is given a MavenModuleSetBuild. But when inside the hudson.tasks.junit.TestResultAction.Data.getTestAction(TestObject) calls hudson.tasks.test.TestObject.getOwner() it is given a MavenBuild.

When looking at this for loop in MavenTestDataPublisher it seemed natural to pass getTestData the moduleBuild. Otherwise the TestDataPublisher.getTestData is being called with the same MavenModuleSetBuild instance moduleLastBuilds.values().size() times.

The amount of testing I've done upon this change could only be described as anecdotal. Targeted unit tests may be required.

@cloudbees-pull-request-builder

plugins » maven-plugin #42 UNSTABLE
Looks like there's a problem with this pull request

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me. The tests have been restarted

Copy link
Member

@aheritier aheritier left a comment

Choose a reason for hiding this comment

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

LGTM

@aheritier aheritier merged commit dcfec7c into jenkinsci:master Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants