diff --git a/spring-cloud-release-tools-core/src/main/resources/templates/cloud/blog.hbs b/spring-cloud-release-tools-core/src/main/resources/templates/cloud/blog.hbs index 7a9c8a0b..d520a1ae 100644 --- a/spring-cloud-release-tools-core/src/main/resources/templates/cloud/blog.hbs +++ b/spring-cloud-release-tools-core/src/main/resources/templates/cloud/blog.hbs @@ -11,7 +11,7 @@ The following modules were updated as part of {{ releaseVersion }}: | Module | Version | Issues |--- |--- |--- |--- -{{#each projects}}| {{name}} | {{version}} | {{#if closedMilestoneUrl}}([issues]({{{ closedMilestoneUrl }}})){{/if}} +{{#each projects}}| {{name}} | {{version}} | {{#if closedMilestoneUrl}}([issues]({{{ closedMilestoneUrl }}})){{/if}}{{^closedMilestoneUrl}} {{/closedMilestoneUrl}} {{/each}} As always, we welcome feedback on [GitHub](https://github.com/spring-cloud/), on [Gitter](https://gitter.im/spring-cloud/spring-cloud), on [Stack Overflow](http://stackoverflow.com/questions/tagged/spring-cloud), or on [Twitter](https://twitter.com/SpringCloud). diff --git a/spring-cloud-release-tools-core/src/test/java/org/springframework/cloud/release/internal/template/TemplateGeneratorTests.java b/spring-cloud-release-tools-core/src/test/java/org/springframework/cloud/release/internal/template/TemplateGeneratorTests.java index 041c02c2..f287e0d8 100644 --- a/spring-cloud-release-tools-core/src/test/java/org/springframework/cloud/release/internal/template/TemplateGeneratorTests.java +++ b/spring-cloud-release-tools-core/src/test/java/org/springframework/cloud/release/internal/template/TemplateGeneratorTests.java @@ -40,6 +40,9 @@ public class TemplateGeneratorTests { ProjectGitHandler handler = new ProjectGitHandler(this.props) { @Override public String milestoneUrl(ProjectVersion releaseVersion) { + if (releaseVersion.projectName.equals("spring-cloud-foo")) { + return ""; + } return "http://foo.bar.com"; } }; @@ -103,6 +106,7 @@ public class TemplateGeneratorTests { { add(new ProjectVersion("spring-cloud-sleuth", "1.0.0.RELEASE")); add(new ProjectVersion("spring-cloud-consul", "1.0.1.RELEASE")); + add(new ProjectVersion("spring-cloud-foo", "1.0.2.RELEASE")); } }); @@ -115,6 +119,7 @@ public class TemplateGeneratorTests { .contains("### Spring Cloud Sleuth") .contains( "| Spring Cloud Sleuth | 1.0.0.RELEASE | ([issues](http://foo.bar.com))") + .contains("| Spring Cloud Foo\t| 1.0.2.RELEASE\t|  ") .contains("Dalston.RELEASE").contains( "mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Dalston.RELEASE'"); } diff --git a/spring-cloud-release-tools-spring/src/main/java/org/springframework/cloud/release/internal/ReleaserApplication.java b/spring-cloud-release-tools-spring/src/main/java/org/springframework/cloud/release/internal/ReleaserApplication.java index 0eae8b2e..e6e4450f 100644 --- a/spring-cloud-release-tools-spring/src/main/java/org/springframework/cloud/release/internal/ReleaserApplication.java +++ b/spring-cloud-release-tools-spring/src/main/java/org/springframework/cloud/release/internal/ReleaserApplication.java @@ -64,7 +64,9 @@ public class ReleaserApplication implements CommandLineRunner { application.run(args); } catch (MakeBuildUnstableException ex) { - log.error("[BUILD UNSTABLE] The following exceptions took place in the post release process", ex); + log.error( + "[BUILD UNSTABLE] The following exceptions took place in the post release process", + ex); log.error( "[BUILD UNSTABLE] The release happened successfully, but there were post release issues"); log.error("[BUILD UNSTABLE] An exception that should make "