Merge pull request #1470 from op-jenkins/op-build-update_043_9-21-2017
op-build update 9-21-2017
diff --git a/openpower/scripts/release-notes b/openpower/scripts/release-notes
index a0f322f..33974d5 100755
--- a/openpower/scripts/release-notes
+++ b/openpower/scripts/release-notes
@@ -74,6 +74,23 @@
my $witherspoon_insanity;
+# If both witherspoon and witherspoon-sequoia exist we've switched back
+# to a single witherspoon platform and the -sequoia platform is just to
+# keep Jenkins happy - ignore it.
+if ("witherspoon" ~~ @begin_platforms
+ && "witherspoon-sequoia" ~~ @begin_platforms) {
+ my $index = 0;
+ $index++ until @begin_platforms[$index] eq "witherspoon-sequoia";
+ splice(@begin_platforms, $index, 1);
+}
+
+if ("witherspoon" ~~ @end_platforms
+ && "witherspoon-sequoia" ~~ @end_platforms) {
+ my $index = 0;
+ $index++ until @end_platforms[$index] eq "witherspoon-sequoia";
+ splice(@end_platforms, $index, 1);
+}
+
if (($platform && $platform eq 'witherspoon')
&& -f "$end_worktree/openpower/configs/witherspoon-sequoia_defconfig") {
@begin_platforms = ('witherspoon');