-
Notifications
You must be signed in to change notification settings - Fork 250
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-64846] Fix use of local declared variables inside matrix #415
Conversation
We have script splitting turned on by default in most tests. The assumption as was that script splitting being turned one would break thing not make them work unexpectedly. Turns out that is not always the case.
I'm reviewing existing tests to make sure this scenario is covered outside of |
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.
Looks reasonable. I do wonder if we might want to make a profile in the POM for turning script splitting on and run the full suite of tests with and without script splitting on in CI?
@abayer |
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.
LGTM, though admittedly I'm just looking more for syntax errors as I'm not completely familiar with the code
135d6a2
to
d8d3f14
Compare
d8d3f14
to
e1ef424
Compare
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<systemPropertyVariables> | ||
<org.jenkinsci.plugins.pipeline.modeldefinition.parser.RuntimeASTTransformer.SCRIPT_SPLITTING_TRANSFORMATION>false</org.jenkinsci.plugins.pipeline.modeldefinition.parser.RuntimeASTTransformer.SCRIPT_SPLITTING_TRANSFORMATION> |
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.
I do not get it. Why not just set these flags directly in the code, at runtime, depending on the Java version? Or if you want to test in both modes, use @Parameterized
etc. See jenkinsci/bom#451 (comment)
JENKINS issue(s):
Description:
Documentation changes:
Users/aliases to notify: