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

Nitpicking #1

Merged
merged 3 commits into from Apr 4, 2013
Merged

Nitpicking #1

merged 3 commits into from Apr 4, 2013

Conversation

kohsuke
Copy link
Member

@kohsuke kohsuke commented Apr 3, 2013

Mark found out a few glitches in the plugin. These two changes eliminate them.

The first commit is a bit more serious in that it will interfere with the correctness of the plugin when it's used in a certain project type, such as a Maven project. It also prevents the job configuration from getting updated programmatically (although this isn't probably too common.)

The second commit removes a rough edge where a form validation is too eager and issue a big warning where it shouldn't.

kohsuke and others added 3 commits April 3, 2013 14:35
... because it contains references to the transient objects like a channel connection to a slave. So at minimum the field needs to be marked 'transient'.

Builder can be also shared across multiple builds, so the best thing to do in this case is not to store this state in the field. There's an up-to-date check inside the performInstallation method so that this lack of caching shouldn't really result in a notcable performance degradation.
If the variable references are used inside the setting, they will cause the validation to fail and issue a false positive warning, and that'd be confusing.
I'm fixing this in FilePath.validateFileMask, but in the mean time a workaround is implemented in a plugin.
@ghost ghost assigned msolnit Apr 4, 2013
@msolnit
Copy link

msolnit commented Apr 4, 2013

Thanks Kohsuke. I'm merging, but can you elaborate on this part?

The first commit is a bit more serious in that it will interfere
with the correctness of the plugin when it's used in a certain
project type, such as a Maven project.

msolnit pushed a commit that referenced this pull request Apr 4, 2013
@msolnit msolnit merged commit 1d2546b into master Apr 4, 2013
msolnit pushed a commit that referenced this pull request Dec 11, 2013
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.

None yet

2 participants