Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1259 from daniel-beck/JENKINS-16827
[FIX JENKINS-16827] Don't try to guess the build number
  • Loading branch information
jglick committed Jun 4, 2014
2 parents a9c9437 + b401cf1 commit e6b063d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/java/hudson/tasks/BuildTrigger.java
Expand Up @@ -247,11 +247,9 @@ public int compare(Dependency lhs, Dependency rhs) {
logger.println(Messages.BuildTrigger_Disabled(ModelHyperlinkNote.encodeTo(p)));
continue;
}
// this is not completely accurate, as a new build might be triggered
// between these calls
boolean scheduled = p.scheduleBuild(p.getQuietPeriod(), new UpstreamCause((Run)build), buildActions.toArray(new Action[buildActions.size()]));
if (Jenkins.getInstance().getItemByFullName(p.getFullName()) == p) {
String name = ModelHyperlinkNote.encodeTo(p) + " #" + p.getNextBuildNumber();
String name = ModelHyperlinkNote.encodeTo(p);
if (scheduled) {
logger.println(Messages.BuildTrigger_Triggering(name));
} else {
Expand Down

0 comments on commit e6b063d

Please sign in to comment.