Log warning if sagan update fails, rather than failing build.
see gh-58
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user