Skip to content

Commit

Permalink
Change name for lastSeen retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored May 24, 2019
1 parent 3f35d7a commit 1258bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jenkins/branch/MultiBranchProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ private void observeProject(@NonNull SCMHead head, @NonNull SCMRevision revision

needSave = true;
// get the previous seen revision
SCMRevision scmLastSeenRevision = getLastSeenRevision(project, scmLastBuiltRevision);
SCMRevision scmLastSeenRevision = lastSeenRevisionOrDefault(project, scmLastBuiltRevision);

doAutomaticBuilds(head, revision, rawName, project, scmLastBuiltRevision, scmLastSeenRevision);

Expand Down Expand Up @@ -2179,7 +2179,7 @@ private Branch getOrigBranch(P project) {
return origBranch;
}

private SCMRevision getLastSeenRevision(@NonNull P project, SCMRevision scmLastBuiltRevision) {
private SCMRevision lastSeenRevisionOrDefault(@NonNull P project, SCMRevision scmLastBuiltRevision) {
SCMRevision scmLastSeenRevision = _factory.getLastSeenRevision(project);
if (scmLastSeenRevision == null && scmLastBuiltRevision != null) {
scmLastSeenRevision = scmLastBuiltRevision;
Expand Down

0 comments on commit 1258bf6

Please sign in to comment.