-
Notifications
You must be signed in to change notification settings - Fork 98
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
Demonstration that implementing getParentExecutable
is necessary
#177
Demonstration that implementing getParentExecutable
is necessary
#177
Conversation
main.setDefinition(new CpsFlowDefinition("node('" + s.getNodeName() + "') {writeBack()}", true)); | ||
// Normal case: writing to our own build directory | ||
WriteBackStep.controllerFile = new File(main.getBuildDir(), "1/stuff.txt"); | ||
r.buildAndAssertSuccess(main); |
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.
Fails without getParentExecutable
override.
FreeStyleProject other = r.createFreeStyleProject("other"); | ||
r.buildAndAssertSuccess(other); | ||
WriteBackStep.controllerFile = new File(other.getBuildByNumber(1).getRootDir(), "hack"); | ||
r.buildAndAssertSuccess(main); |
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.
Fails against older Jenkins versions without RunningBuildFilePathFilter
.
(cherry picked from commit 45fe55f)
This is more |
makes sense. I just wanted some kind of indicator that the jenkins version was being bumped, but i can also just add that in the changelog as well |
…ci/jenkins@f4e8497 backported this to 2.303.3 which we use as of jenkinsci#177
Proves that #170 is necessary to retain compatibility with some rare use cases after jenkinsci/jenkins#5880: for example, Pipeline code coverage without jenkinsci/code-coverage-api-plugin#245 or jenkinsci/cobertura-plugin#130.