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

addPlugins does not currently take effect when used inside test method #346

Closed
wants to merge 1 commit into from

Conversation

basil
Copy link
Member

@basil basil commented Nov 14, 2021

Moves the existing logic a little further down so that it takes effect in more scenarios.

@basil basil requested a review from jglick November 23, 2021 18:47
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

I was considering this change earlier but rejected it because it is not exactly right, either. This copies specified files to $JENKINS_HOME/plugins/ before every startup, unlike the plugins from test-dependencies which are just copied once, when preparing $JENKINS_HOME initially.

Arguably what a caller would expect is for a call to addPlugins before the test runs to collect its arguments, including them in the initial list in apply; but a call after $JENKINS_HOME already exists to immediately copy the plugin there (once). A bit more complicated but seems better.

@jglick
Copy link
Member

jglick commented Dec 20, 2021

I suppose better would be for all the $JENKINS_HOME setup currently done eagerly inside apply should be deferred until startJenkins (or getHome) is first called.

@basil
Copy link
Member Author

basil commented Dec 20, 2021

I have not found the time to get back to this, so closing this for now so we do not waste build resources on it. Great task for a volunteer to pick up!

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.

2 participants