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

Don't call SCM#calcPollingingBaseline if SCM#checkout fails #323

Merged
merged 1 commit into from Dec 4, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -1193,7 +1193,9 @@ public boolean checkout(AbstractBuild build, Launcher launcher, BuildListener li
workspace.mkdirs();

boolean r = scm.checkout(build, launcher, workspace, listener, changelogFile);
calcPollingBaseline(build, launcher, listener);
if (r) { // Only calcRevisionsFromBuild is checkout was successful
calcPollingBaseline(build, launcher, listener);
}
return r;
}

Expand Down