Merge "Update branch cutting script"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 26 Feb 2018 15:48:42 +0000 (15:48 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 26 Feb 2018 15:48:42 +0000 (15:48 +0000)
scripts/branch_cut/branch_cut.awk

index b93b84bad0911c34a7f260d56d1dc87815053821..e4553a9ac8a91e7a9dee4746a78c3b15d490cb3c 100755 (executable)
@@ -43,6 +43,7 @@ BEGIN {
     #br_master_yaml_tag         = "    branch: 'master'";
     jdk_yaml_tag                = "    jdk: 'openjdk8'";
     intg_test_yaml_tag          = "    integration-test: " new_release;
+    extra_mvn_opts_tag          = "    extra-mvn-opts: -Dsft.heap.max=4g"
     #curr_rel_yaml_tag          = "- " curr_release ":";
     next_rel_tag_curr_yaml_tag  = "    next-release-tag: '{stream}'";
     #br_stable_curr_yaml_tag    = "    branch: 'stable/" curr_release "'";
@@ -165,12 +166,6 @@ function process_blk(bs, be, bn,   i, l) {
                 if (stream_found && release_found && !nrt_found) {
                     newblk[++nex3] = indent new_rel_yaml_tag;
                     newblk[++nex3] = indent br_master_yaml_tag;
-                    # set 'jdk' macro for patch-test jobs
-                    if (!func_found) {
-                        newblk[++nex3] = indent jdk_yaml_tag;
-                    } else {
-                        newblk[++nex3] = indent jre_yaml_tag;
-                    }
                     newblk[++nex3] = indent curr_rel_yaml_tag;
                     newblk[++nex3] = indent br_stable_curr_yaml_tag;
                     stream_found = 0;
@@ -182,8 +177,8 @@ function process_blk(bs, be, bn,   i, l) {
                     newblk[++nex3] = indent new_rel_yaml_tag;
                     newblk[++nex3] = indent next_rel_tag_new_yaml_tag;
                     newblk[++nex3] = indent br_master_yaml_tag;
-                    newblk[++nex3] = indent jdk_yaml_tag;
                     newblk[++nex3] = indent intg_test_yaml_tag;
+                    newblk[++nex3] = indent extra_mvn_opts_tag;
                     newblk[++nex3] = indent curr_rel_yaml_tag;
                     newblk[++nex3] = indent next_rel_tag_curr_yaml_tag;
                     newblk[++nex3] = indent br_stable_curr_yaml_tag;