Log warning if sagan update fails, rather than failing build.

see gh-58
This commit is contained in:
Spencer Gibb
2017-11-21 18:14:54 -05:00
parent 7521f85236
commit 0ff35c2230

View File

@@ -157,7 +157,11 @@ public class Releaser {
public void updateSagan(File project, ProjectVersion releaseVersion) {
String currentBranch = this.projectGitHandler.currentBranch(project);
ProjectVersion originalVersion = new ProjectVersion(project);
this.saganUpdater.updateSagan(currentBranch, originalVersion, releaseVersion);
log.info("\nSuccessfully updated Sagan for branch [{}]", currentBranch);
try {
this.saganUpdater.updateSagan(currentBranch, originalVersion, releaseVersion);
log.info("\nSuccessfully updated Sagan for branch [{}]", currentBranch);
} catch (Exception e) {
log.warn("\nUnable to update Sagan for branch ["+ currentBranch+ "]", e);
}
}
}