Skip to content

Commit

Permalink
[FIXED JENKINS-13227] skip files not in current tag rather than throw…
Browse files Browse the repository at this point in the history
… exception
  • Loading branch information
mc1arke committed May 31, 2012
1 parent 05e417c commit cd691b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/hudson/scm/CvsChangeLogHelper.java
Expand Up @@ -153,6 +153,10 @@ public CvsChangeSet mapCvsLog(final String logContents,final CvsRepository repos
mainMatcher.group(4),
mainMatcher.group(2),
repositoryLocation.isUseHeadIfNotFound());

if (null == tipVersion) {
continue;
}
}

final String[] cvsChanges = section.split(
Expand Down Expand Up @@ -270,7 +274,7 @@ private String getCurrentFileVersion(final String tagName, final String versionA
if (useHeadIfNotFound) {
return headVersion;
} else {
throw new RuntimeException("No file version found for the specified tag. Looking for " + tagName + " in " + versionAndTagList);
return null;
}
}
}
Expand Down

0 comments on commit cd691b3

Please sign in to comment.