1167 build_devkit: {
1168 organization: common.organization,
1169 ext: "tar.gz",
1170 module: "devkit-" + input.build_platform,
1171 revision: devkit_platform_revisions[input.build_platform],
1172 // Only set --with-build-devkit when cross compiling.
1173 configure_args: (input.build_cpu == input.target_cpu ? false
1174 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1175 },
1176
1177 lldb: {
1178 organization: common.organization,
1179 ext: "tar.gz",
1180 module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1181 revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.2" : devkit_platform_revisions[devkit_platform])
1182 },
1183
1184 jtreg: {
1185 server: "jpg",
1186 product: "jtreg",
1187 version: "7.4",
1188 build_number: "1",
1189 file: "bundles/jtreg-7.4+1.zip",
1190 environment_name: "JT_HOME",
1191 environment_path: input.get("jtreg", "home_path") + "/bin",
1192 configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1193 },
1194
1195 jmh: {
1196 organization: common.organization,
1197 ext: "tar.gz",
1198 revision: "1.37+1.0"
1199 },
1200
1201 jcov: {
1202 organization: common.organization,
1203 revision: "3.0-17-jdk-asm+1.0",
1204 ext: "zip",
1205 environment_name: "JCOV_HOME",
1206 },
1207
1208 gnumake: {
1209 organization: common.organization,
1459 if (common.build_number != 0) {
1460 args = concat(args, "--with-version-build=" + common.build_number);
1461 }
1462 if (input.build_type == "promoted") {
1463 args = concat(args,
1464 "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"),
1465 "--without-version-opt");
1466 } else if (input.build_type == "ci") {
1467 var ciBuildNumber = input.build_id_data.ciBuildNumber;
1468 var preString = input.build_id_data.projectName;
1469 if (preString == "jdk") {
1470 preString = version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE");
1471 }
1472 args = concat(args, "--with-version-pre=" + preString,
1473 "--with-version-opt=" + ciBuildNumber);
1474 if (input.target_os == "macosx") {
1475 args = concat(args, "--with-macosx-bundle-build-version="
1476 + common.build_number + "." + ciBuildNumber);
1477 }
1478 } else {
1479 args = concat(args, "--with-version-opt=" + common.build_id);
1480 }
1481 var sourceDate
1482 if (input.build_id_data && input.build_id_data.creationTime) {
1483 sourceDate = Math.floor(Date.parse(input.build_id_data.creationTime)/1000);
1484 } else {
1485 sourceDate = "current";
1486 }
1487 args = concat(args, "--with-source-date=" + sourceDate);
1488
1489 return args;
1490 }
1491
1492 // Properties representation of the make/conf/version-numbers.conf file. Lazily
1493 // initiated by the function below.
1494 var version_numbers;
1495
1496 /**
1497 * Read the make/conf/version-numbers.conf file into a Properties object.
1498 *
|
1167 build_devkit: {
1168 organization: common.organization,
1169 ext: "tar.gz",
1170 module: "devkit-" + input.build_platform,
1171 revision: devkit_platform_revisions[input.build_platform],
1172 // Only set --with-build-devkit when cross compiling.
1173 configure_args: (input.build_cpu == input.target_cpu ? false
1174 : "--with-build-devkit=" + input.get("build_devkit", "home_path"))
1175 },
1176
1177 lldb: {
1178 organization: common.organization,
1179 ext: "tar.gz",
1180 module: "devkit-macosx" + (input.build_cpu == "x64" ? "_x64" : ""),
1181 revision: (input.build_cpu == "x64" ? "Xcode11.3.1-MacOSX10.15+1.2" : devkit_platform_revisions[devkit_platform])
1182 },
1183
1184 jtreg: {
1185 server: "jpg",
1186 product: "jtreg",
1187 version: "7.5",
1188 build_number: "ci/31",
1189 file: "bundles/jtreg-7.5+1.zip",
1190 environment_name: "JT_HOME",
1191 environment_path: input.get("jtreg", "home_path") + "/bin",
1192 configure_args: "--with-jtreg=" + input.get("jtreg", "home_path"),
1193 },
1194
1195 jmh: {
1196 organization: common.organization,
1197 ext: "tar.gz",
1198 revision: "1.37+1.0"
1199 },
1200
1201 jcov: {
1202 organization: common.organization,
1203 revision: "3.0-17-jdk-asm+1.0",
1204 ext: "zip",
1205 environment_name: "JCOV_HOME",
1206 },
1207
1208 gnumake: {
1209 organization: common.organization,
1459 if (common.build_number != 0) {
1460 args = concat(args, "--with-version-build=" + common.build_number);
1461 }
1462 if (input.build_type == "promoted") {
1463 args = concat(args,
1464 "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"),
1465 "--without-version-opt");
1466 } else if (input.build_type == "ci") {
1467 var ciBuildNumber = input.build_id_data.ciBuildNumber;
1468 var preString = input.build_id_data.projectName;
1469 if (preString == "jdk") {
1470 preString = version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE");
1471 }
1472 args = concat(args, "--with-version-pre=" + preString,
1473 "--with-version-opt=" + ciBuildNumber);
1474 if (input.target_os == "macosx") {
1475 args = concat(args, "--with-macosx-bundle-build-version="
1476 + common.build_number + "." + ciBuildNumber);
1477 }
1478 } else {
1479 args = concat(args, "--with-version-pre=" + version_numbers.get("DEFAULT_PROMOTED_VERSION_PRE"));
1480 args = concat(args, "--with-version-opt=" + common.build_id);
1481 }
1482 var sourceDate
1483 if (input.build_id_data && input.build_id_data.creationTime) {
1484 sourceDate = Math.floor(Date.parse(input.build_id_data.creationTime)/1000);
1485 } else {
1486 sourceDate = "current";
1487 }
1488 args = concat(args, "--with-source-date=" + sourceDate);
1489
1490 return args;
1491 }
1492
1493 // Properties representation of the make/conf/version-numbers.conf file. Lazily
1494 // initiated by the function below.
1495 var version_numbers;
1496
1497 /**
1498 * Read the make/conf/version-numbers.conf file into a Properties object.
1499 *
|