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

Fix elastic timout #12

Merged
merged 1 commit into from
Nov 22, 2012
Merged

Fix elastic timout #12

merged 1 commit into from
Nov 22, 2012

Conversation

tshibata
Copy link
Contributor

About elastic timeout, the help says "the three most recent non-failing builds" but I found it actually takes the oldest three.
It aborts very soon if the build was simple at the beginning.

Since the first entry of Job#getBuilds() is the latest build, BuildTimeoutWrapper#getEffectiveTimeout() just needs to take the first three non-failing builds.
So I fixed.

I'm glad if this fix is applied also on jenkinsci.

@buildhive
Copy link

Jenkins » build-timeout-plugin #13 FAILURE
Looks like there's a problem with this pull request
(what's this?)

ndeloof added a commit that referenced this pull request Nov 22, 2012
@ndeloof ndeloof merged commit 3191975 into jenkinsci:master Nov 22, 2012
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.

4 participants