Go only up to 6 build into the past for calculating the estimated duration.
Also take failed builds into account, if we don't find any successful ones.
The earlier fix by @ssogabe broke the test. This fix corrects the
problem properly.
The reason this error happens with some plugins is that if there's an
input field whose name is "on", then even after prototype.js extends
an element object, "form.on" will refer to the input element, not the
prototype.js function to add an event handler.
- Fixes a regression in core where the display name clear on copy was triggering a save
- More than one way to do this, could also have used the marker interface approach
This route seems slightly less fragile, though people could still add ItemListeners
with order == -Double.MAX_VALUE which would then introduce intdeterminism.
A marker interface would remove that indeterminism as the onCopyComplete method would
be only called on the Job as the last method... but it could be hard to
ensure that all ItemGroupMixin's respect the calling of onCopyComplete contract
hence this approach seems better to me for that reason
Use DescribableList to handle the copy-on-write semantics correctly. The vector class just doesn't cut it, and we've been setting a new value to this field, which will violates all sorts of the concurrent programming practice.
This change has the nice side effect of removing {{class="vector"}} from the persisted XML. A test is added to make sure we can still read back such an XML.
- if the user is anonymous, he'd go to HudsonAUthenticationEntryPoint, not here.
- even if there is some code path that comes here, there's no guarnatee that SecurityRealm in charge wants a login form.
Added Queue.schedule2 to allow the caller to retrieve the existing item in the queue. AbstractProject.doBuild() changed the behavior a bit to reply 201 if the item was already found in the queue (instead of a new one created.)
The exception handler ended up adding almost all the headers again,
resulting in a lot of duplicate headers.
Most critically, stapler was adding "Content-Encoding" header twice,
breaking browsers.
Add documentation about it. ref. [JENKINS-18451]
If someone knows a way to display this help section only for Maven jobs, feel
free to amend this commit.