author | erikj |
Mon, 23 Oct 2017 10:41:34 +0200 | |
changeset 47434 | 7be5c153e8a4 |
parent 47433 | 6331ad007664 |
child 47440 | 963f70aa578d |
permissions | -rw-r--r-- |
34491 | 1 |
/* |
44727 | 2 |
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
34491 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
/* |
|
34496 | 27 |
* This file defines build profiles for the JIB tool and others. |
34491 | 28 |
* |
29 |
* A build profile defines a set of configuration options and external |
|
30 |
* dependencies that we for some reason or other care about specifically. |
|
31 |
* Typically, build profiles are defined for the build configurations we |
|
32 |
* build regularly. |
|
33 |
* |
|
34 |
* Contract against this file from the tools that use it, is to provide |
|
35 |
* a function on the form: |
|
36 |
* |
|
34496 | 37 |
* getJibProfiles(input) |
34491 | 38 |
* |
39 |
* which returns an object graph describing the profiles and their |
|
40 |
* dependencies. The name of the function is based on the name of this |
|
41 |
* file, minus the extension and the '-', camel cased and prefixed with |
|
42 |
* 'get'. |
|
43 |
* |
|
44 |
* |
|
45 |
* The parameter 'input' is an object that optionally contains some data. |
|
46 |
* Optionally because a tool may read the configuration for different purposes. |
|
47 |
* To initially get a list of available profiles, the active profile may not |
|
48 |
* yet be known for instance. |
|
49 |
* |
|
50 |
* Data that may be set on the input object: |
|
51 |
* |
|
52 |
* input.profile = <name of active profile> |
|
53 |
* |
|
54 |
* If the active profile is set, the following data from it must also |
|
55 |
* be provided: |
|
56 |
* |
|
57 |
* input.profile |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
58 |
* input.build_id |
34491 | 59 |
* input.target_os |
60 |
* input.target_cpu |
|
61 |
* input.build_os |
|
62 |
* input.build_cpu |
|
63 |
* input.target_platform |
|
64 |
* input.build_platform |
|
65 |
* // The build_osenv_* variables describe the unix layer on Windows systems, |
|
66 |
* // i.e. Cygwin, which may also be 32 or 64 bit. |
|
67 |
* input.build_osenv |
|
68 |
* input.build_osenv_cpu |
|
69 |
* input.build_osenv_platform |
|
70 |
* |
|
71 |
* For more complex nested attributes, there is a method "get": |
|
72 |
* |
|
73 |
* input.get("<dependency>", "<attribute>") |
|
74 |
* |
|
75 |
* Valid attributes are: |
|
76 |
* install_path |
|
77 |
* download_path |
|
78 |
* download_dir |
|
79 |
* |
|
80 |
* |
|
81 |
* The output data generated by this configuration file has the following |
|
82 |
* format: |
|
83 |
* |
|
84 |
* data: { |
|
85 |
* // Identifies the version of this format to the tool reading it |
|
86 |
* format_version: "1.0", |
|
87 |
* |
|
34496 | 88 |
* // Name of base outputdir. JIB assumes the actual output dir is formed |
34491 | 89 |
* // by adding the configuration name: <output_basedir>/<config-name> |
90 |
* output_basedir: "build", |
|
91 |
* // Configure argument to use to specify configuration name |
|
92 |
* configuration_configure_arg: |
|
93 |
* // Make argument to use to specify configuration name |
|
94 |
* configuration_make_arg: |
|
95 |
* |
|
96 |
* profiles: { |
|
97 |
* <profile-name>: { |
|
98 |
* // Name of os the profile is built to run on |
|
99 |
* target_os; <string> |
|
100 |
* // Name of cpu the profile is built to run on |
|
101 |
* target_cpu; <string> |
|
102 |
* // Combination of target_os and target_cpu for convenience |
|
103 |
* target_platform; <string> |
|
104 |
* // Name of os the profile is built on |
|
105 |
* build_os; <string> |
|
106 |
* // Name of cpu the profile is built on |
|
107 |
* build_cpu; <string> |
|
108 |
* // Combination of build_os and build_cpu for convenience |
|
109 |
* build_platform; <string> |
|
110 |
* |
|
111 |
* // List of dependencies needed to build this profile |
|
112 |
* dependencies: <Array of strings> |
|
113 |
* |
|
114 |
* // List of configure args to use for this profile |
|
115 |
* configure_args: <Array of strings> |
|
116 |
* |
|
117 |
* // List of free form labels describing aspects of this profile |
|
118 |
* labels: <Array of strings> |
|
119 |
* } |
|
120 |
* } |
|
121 |
* |
|
122 |
* // Dependencies use a Maven like deployment structure |
|
123 |
* dependencies: { |
|
124 |
* <dependency-name>: { |
|
125 |
* // Organization part of path defining this dependency |
|
126 |
* organization: <string> |
|
127 |
* // File extension for this dependency |
|
128 |
* ext: <string> |
|
129 |
* // Module part of path for defining this dependency, |
|
130 |
* // defaults to <dependency-name> |
|
131 |
* module: <string> |
|
132 |
* // Revision part of path for defining this dependency |
|
133 |
* revision: <string> |
|
134 |
* |
|
135 |
* // List of configure args to add when using this dependency, |
|
136 |
* // defaults to |
|
137 |
* // "--with-<dependency-name>=input.get("<dependency-name", "install_path")" |
|
138 |
* configure_args: <array of strings> |
|
139 |
* |
|
140 |
* // Name of environment variable to set when using this dependency |
|
141 |
* // when running make |
|
142 |
* environment_name: <string> |
|
143 |
* // Value of environment variable to set when using this dependency |
|
144 |
* // when running make |
|
145 |
* environment_value: <string> |
|
146 |
* |
|
147 |
* // Value to add to the PATH variable when using this dependency, |
|
148 |
* // applies to both make and configure |
|
149 |
* environment_path: <string> |
|
150 |
* } |
|
151 |
* |
|
152 |
* <dependency-name>: { |
|
153 |
* // For certain dependencies where a legacy distribution mechanism is |
|
154 |
* // already in place, the "javare" server layout is also supported |
|
155 |
* // Indicate that an alternate server source and layout should be used |
|
156 |
* server: "javare" |
|
157 |
* |
|
158 |
* // For "javare", a combination of module, revision, |
|
159 |
* // build number (optional), files and checksum file is possible for |
|
160 |
* // artifacts following the standard layout. |
|
161 |
* module: <string> |
|
162 |
* revision: <string> |
|
163 |
* build_number: <string> |
|
164 |
* checksum_file: <string> |
|
165 |
* file: <string> |
|
166 |
* |
|
167 |
* // For other files, use checksum path and path instead |
|
168 |
* checksum_path: <string> |
|
169 |
* path: <string> |
|
170 |
* } |
|
171 |
* } |
|
172 |
* } |
|
173 |
*/ |
|
174 |
||
175 |
/** |
|
176 |
* Main entry to generate the profile configuration |
|
177 |
* |
|
178 |
* @param input External data to use for generating the configuration |
|
179 |
* @returns {{}} Profile configuration |
|
180 |
*/ |
|
34496 | 181 |
var getJibProfiles = function (input) { |
34491 | 182 |
|
183 |
var data = {}; |
|
184 |
||
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
185 |
// Identifies the version of this format to the tool reading it. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
186 |
// 1.1 signifies that the publish, publish-src and get-src features are usable. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
187 |
data.format_version = "1.1"; |
34491 | 188 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
189 |
// Organization, product and version are used when uploading/publishing build results |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
190 |
data.organization = ""; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
191 |
data.product = "jdk"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
192 |
data.version = getVersion(); |
34491 | 193 |
|
34496 | 194 |
// The base directory for the build output. JIB will assume that the |
34491 | 195 |
// actual build directory will be <output_basedir>/<configuration> |
196 |
data.output_basedir = "build"; |
|
197 |
// The configure argument to use to specify the name of the configuration |
|
198 |
data.configuration_configure_arg = "--with-conf-name="; |
|
199 |
// The make argument to use to specify the name of the configuration |
|
200 |
data.configuration_make_arg = "CONF_NAME="; |
|
201 |
||
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
202 |
// Exclude list to use when Jib creates a source bundle |
46939
23c02a1b49ee
8186218: Make JIB exclude webrev from all sub-repo levels when creating source bundles
ctornqvi
parents:
46251
diff
changeset
|
203 |
data.src_bundle_excludes = "./build webrev* */webrev* */*/webrev* */*/*/webrev* .hg */.hg */*/.hg */*/*/.hg"; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
204 |
// Include list to use when creating a minimal jib source bundle which |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
205 |
// contains just the jib configuration files. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
206 |
data.conf_bundle_includes = "*/conf/jib-profiles.* common/autoconf/version-numbers" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
207 |
|
34491 | 208 |
// Define some common values |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
209 |
var common = getJibProfilesCommon(input, data); |
34491 | 210 |
// Generate the profiles part of the configuration |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
211 |
data.profiles = getJibProfilesProfiles(input, common, data); |
34491 | 212 |
// Generate the dependencies part of the configuration |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
213 |
data.dependencies = getJibProfilesDependencies(input, common, data); |
34491 | 214 |
|
215 |
return data; |
|
216 |
}; |
|
217 |
||
218 |
/** |
|
219 |
* Generates some common values |
|
220 |
* |
|
221 |
* @param input External data to use for generating the configuration |
|
222 |
* @returns Common values |
|
223 |
*/ |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
224 |
var getJibProfilesCommon = function (input, data) { |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
225 |
var common = {}; |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
226 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
227 |
common.organization = "jpg.infra.builddeps"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
228 |
common.build_id = getBuildId(input); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
229 |
common.build_number = input.build_number != null ? input.build_number : "0"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
230 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
231 |
// List of the main profile names used for iteration |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
232 |
common.main_profile_names = [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
233 |
"linux-x64", "linux-x86", "macosx-x64", "solaris-x64", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
234 |
"solaris-sparcv9", "windows-x64", "windows-x86", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
235 |
"linux-arm64", "linux-arm-vfp-hflt", "linux-arm-vfp-hflt-dyn" |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
236 |
]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
237 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
238 |
// These are the base setttings for all the main build profiles. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
239 |
common.main_profile_base = { |
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
240 |
dependencies: ["boot_jdk", "gnumake", "jtreg", "jib"], |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
241 |
default_make_targets: ["product-bundles", "test-bundles"], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
242 |
configure_args: concat(["--enable-jtreg-failure-handler"], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
243 |
versionArgs(input, common)) |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
244 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
245 |
// Extra settings for debug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
246 |
common.debug_suffix = "-debug"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
247 |
common.debug_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
248 |
configure_args: ["--enable-debug"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
249 |
labels: "debug" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
250 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
251 |
// Extra settings for slowdebug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
252 |
common.slowdebug_suffix = "-slowdebug"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
253 |
common.slowdebug_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
254 |
configure_args: ["--with-debug-level=slowdebug"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
255 |
labels: "slowdebug" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
256 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
257 |
// Extra settings for openjdk only profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
258 |
common.open_suffix = "-open"; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
259 |
common.open_profile_base = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
260 |
configure_args: ["--enable-openjdk-only"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
261 |
labels: "open" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
262 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
263 |
|
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
264 |
common.configure_args_64bit = ["--with-target-bits=64"]; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
265 |
common.configure_args_32bit = ["--with-target-bits=32"]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
266 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
267 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
268 |
* Define common artifacts template for all main profiles |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
269 |
* @param o - Object containing data for artifacts |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
270 |
*/ |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
271 |
common.main_profile_artifacts = function (o) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
272 |
var jdk_subdir = (o.jdk_subdir != null ? o.jdk_subdir : "jdk-" + data.version); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
273 |
var jre_subdir = (o.jre_subdir != null ? o.jre_subdir : "jre-" + data.version); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
274 |
var pf = o.platform |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
275 |
return { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
276 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
277 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
278 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
279 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
280 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
281 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
282 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
283 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
284 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
285 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
286 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
287 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
288 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
289 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
290 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
291 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
292 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
293 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
294 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
295 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
296 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
297 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
298 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
299 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
300 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
301 |
exploded: "images/test" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
302 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
303 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
304 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
305 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
306 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
307 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
308 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
309 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
310 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
311 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
312 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
313 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
314 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
315 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
316 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
317 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
318 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
319 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
320 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
321 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
322 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
323 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
324 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
325 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
326 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
327 |
* Define common artifacts template for all debug profiles |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
328 |
* @param o - Object containing data for artifacts |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
329 |
*/ |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
330 |
common.debug_profile_artifacts = function (o) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
331 |
var jdk_subdir = "jdk-" + data.version + "/fastdebug"; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
332 |
var jre_subdir = "jre-" + data.version + "/fastdebug"; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
333 |
var pf = o.platform |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
334 |
return { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
335 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
336 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
337 |
local: "bundles/\\(jdk.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
338 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
339 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
340 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
341 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
342 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
343 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
344 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
345 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
346 |
local: "bundles/\\(jre.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
347 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
348 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
349 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
350 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
351 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
352 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
353 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
354 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
355 |
local: "bundles/\\(jdk.*bin-tests-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
356 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
357 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-tests-debug.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
358 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
359 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
360 |
exploded: "images/test" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
361 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
362 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
363 |
local: "bundles/\\(jdk.*bin-debug-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
364 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
365 |
"bundles/" + pf + "/jdk-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
366 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
367 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
368 |
subdir: jdk_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
369 |
exploded: "images/jdk" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
370 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
371 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
372 |
local: "bundles/\\(jre.*bin-debug-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
373 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
374 |
"bundles/" + pf + "/jre-" + data.version + "_" + pf + "_bin-debug-symbols.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
375 |
"bundles/" + pf + "/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
376 |
], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
377 |
subdir: jre_subdir, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
378 |
exploded: "images/jre" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
379 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
380 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
381 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
382 |
}; |
34491 | 383 |
|
47365 | 384 |
common.boot_jdk_version = "9"; |
385 |
common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-" |
|
386 |
+ common.boot_jdk_version |
|
387 |
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : ""); |
|
388 |
||
34491 | 389 |
return common; |
390 |
}; |
|
391 |
||
392 |
/** |
|
393 |
* Generates the profiles part of the configuration. |
|
394 |
* |
|
395 |
* @param input External data to use for generating the configuration |
|
396 |
* @param common The common values |
|
397 |
* @returns {{}} Profiles part of the configuration |
|
398 |
*/ |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
399 |
var getJibProfilesProfiles = function (input, common, data) { |
34491 | 400 |
// Main SE profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
401 |
var profiles = { |
34491 | 402 |
|
403 |
"linux-x64": { |
|
404 |
target_os: "linux", |
|
405 |
target_cpu: "x64", |
|
44734 | 406 |
dependencies: ["devkit", "graphviz", "pandoc"], |
44727 | 407 |
configure_args: concat(common.configure_args_64bit, |
408 |
"--enable-full-docs", "--with-zlib=system"), |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
409 |
default_make_targets: ["docs-bundles"], |
34491 | 410 |
}, |
411 |
||
412 |
"linux-x86": { |
|
413 |
target_os: "linux", |
|
414 |
target_cpu: "x86", |
|
415 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
416 |
dependencies: ["devkit"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
417 |
configure_args: concat(common.configure_args_32bit, |
39190
a6b5b18fd06c
8154209: Remove client VM from default JIB profile on windows-x86 and linux-x86
lmesnik
parents:
37972
diff
changeset
|
418 |
"--with-jvm-variants=minimal,server", "--with-zlib=system"), |
34491 | 419 |
}, |
420 |
||
421 |
"macosx-x64": { |
|
422 |
target_os: "macosx", |
|
423 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
424 |
dependencies: ["devkit"], |
45875 | 425 |
configure_args: concat(common.configure_args_64bit, "--with-zlib=system", |
426 |
"--with-macosx-version-max=10.7.0"), |
|
34491 | 427 |
}, |
428 |
||
429 |
"solaris-x64": { |
|
430 |
target_os: "solaris", |
|
431 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
432 |
dependencies: ["devkit", "cups"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
433 |
configure_args: concat(common.configure_args_64bit, |
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
434 |
"--with-zlib=system", "--enable-dtrace"), |
34491 | 435 |
}, |
436 |
||
437 |
"solaris-sparcv9": { |
|
438 |
target_os: "solaris", |
|
439 |
target_cpu: "sparcv9", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
440 |
dependencies: ["devkit", "cups"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
441 |
configure_args: concat(common.configure_args_64bit, |
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
442 |
"--with-zlib=system", "--enable-dtrace"), |
34491 | 443 |
}, |
444 |
||
445 |
"windows-x64": { |
|
446 |
target_os: "windows", |
|
447 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
448 |
dependencies: ["devkit", "freetype"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
449 |
configure_args: concat(common.configure_args_64bit), |
34491 | 450 |
}, |
451 |
||
452 |
"windows-x86": { |
|
453 |
target_os: "windows", |
|
454 |
target_cpu: "x86", |
|
455 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
456 |
dependencies: ["devkit", "freetype"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
457 |
configure_args: concat(common.configure_args_32bit), |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
458 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
459 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
460 |
"linux-arm64": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
461 |
target_os: "linux", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
462 |
target_cpu: "aarch64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
463 |
build_cpu: "x64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
464 |
dependencies: ["devkit", "build_devkit", "cups", "headless_stubs"], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
465 |
configure_args: [ |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
466 |
"--with-cpu-port=arm64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
467 |
"--with-jvm-variants=server", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
468 |
"--openjdk-target=aarch64-linux-gnu", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
469 |
"--enable-headless-only" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
470 |
], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
471 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
472 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
473 |
"linux-arm-vfp-hflt": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
474 |
target_os: "linux", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
475 |
target_cpu: "arm", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
476 |
build_cpu: "x64", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
477 |
dependencies: ["devkit", "build_devkit", "cups"], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
478 |
configure_args: [ |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
479 |
"--with-jvm-variants=minimal1,client", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
480 |
"--with-x=" + input.get("devkit", "install_path") + "/arm-linux-gnueabihf/libc/usr/X11R6-PI", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
481 |
"--openjdk-target=arm-linux-gnueabihf", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
482 |
"--with-abi-profile=arm-vfp-hflt" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
483 |
], |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
484 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
485 |
|
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
486 |
// Special version of the SE profile adjusted to be testable on arm64 hardware. |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
487 |
"linux-arm-vfp-hflt-dyn": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
488 |
configure_args: "--with-stdc++lib=dynamic" |
34491 | 489 |
} |
490 |
}; |
|
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
491 |
// Let linux-arm-vfp-hflt-dyn inherit everything from linux-arm-vfp-hflt |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
492 |
profiles["linux-arm-vfp-hflt-dyn"] = concatObjects( |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
493 |
profiles["linux-arm-vfp-hflt-dyn"], profiles["linux-arm-vfp-hflt"]); |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
494 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
495 |
// Add the base settings to all the main profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
496 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
497 |
profiles[name] = concatObjects(common.main_profile_base, profiles[name]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
498 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
499 |
|
34491 | 500 |
// Generate debug versions of all the main profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
501 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
502 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
503 |
profiles[debugName] = concatObjects(profiles[name], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
504 |
common.debug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
505 |
}); |
36532 | 506 |
// Generate slowdebug versions of all the main profiles |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
507 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
508 |
var debugName = name + common.slowdebug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
509 |
profiles[debugName] = concatObjects(profiles[name], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
510 |
common.slowdebug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
511 |
}); |
34491 | 512 |
|
36532 | 513 |
// Generate open only profiles for all the main profiles for JPRT and reference |
514 |
// implementation builds. |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
515 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
516 |
var openName = name + common.open_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
517 |
profiles[openName] = concatObjects(profiles[name], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
518 |
common.open_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
519 |
}); |
36534
b74ff34537ac
8151800: Jib profile for open linux should produce compact profiles images by default
erikj
parents:
36532
diff
changeset
|
520 |
// The open only profiles on linux are used for reference builds and should |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
521 |
// produce the compact profile images by default. This adds "profiles" as an |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
522 |
// extra default target. |
36534
b74ff34537ac
8151800: Jib profile for open linux should produce compact profiles images by default
erikj
parents:
36532
diff
changeset
|
523 |
var openOnlyProfilesExtra = { |
36170
d493c08255eb
8150504: JIB profiles for reference implementation builds
erikj
parents:
35036
diff
changeset
|
524 |
"linux-x86-open": { |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
525 |
default_make_targets: "profiles-bundles", |
38628
11af6696675c
8158540: Open only linux-x86 builds using Jib fails when building "minimal" jvm
erikj
parents:
37972
diff
changeset
|
526 |
configure_args: "--with-jvm-variants=client,server" |
34491 | 527 |
} |
528 |
}; |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
529 |
profiles = concatObjects(profiles, openOnlyProfilesExtra); |
36534
b74ff34537ac
8151800: Jib profile for open linux should produce compact profiles images by default
erikj
parents:
36532
diff
changeset
|
530 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
531 |
// Generate debug profiles for the open only profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
532 |
common.main_profile_names.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
533 |
var openName = name + common.open_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
534 |
var openDebugName = openName + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
535 |
profiles[openDebugName] = concatObjects(profiles[openName], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
536 |
common.debug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
537 |
}); |
34491 | 538 |
|
42425 | 539 |
// Profiles for building the zero jvm variant. These are used for verification |
540 |
// in JPRT. |
|
541 |
var zeroProfiles = { |
|
542 |
"linux-x64-zero": { |
|
543 |
target_os: "linux", |
|
544 |
target_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
545 |
dependencies: ["devkit"], |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
546 |
configure_args: concat(common.configure_args_64bit, [ |
42425 | 547 |
"--with-zlib=system", |
548 |
"--with-jvm-variants=zero", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
549 |
"--enable-libffi-bundling" |
42980
4ab3d4b67cc0
8171500: Explicitly set --with-target-bits=64 in 64bit jib profiles
erikj
parents:
42848
diff
changeset
|
550 |
]) |
42425 | 551 |
}, |
552 |
||
553 |
"linux-x86-zero": { |
|
554 |
target_os: "linux", |
|
555 |
target_cpu: "x86", |
|
556 |
build_cpu: "x64", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
557 |
dependencies: ["devkit"], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
558 |
configure_args: concat(common.configure_args_32bit, [ |
42425 | 559 |
"--with-zlib=system", |
560 |
"--with-jvm-variants=zero", |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
561 |
"--enable-libffi-bundling" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
562 |
]) |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
563 |
} |
42425 | 564 |
} |
565 |
profiles = concatObjects(profiles, zeroProfiles); |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
566 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
567 |
// Add the base settings to the zero profiles and generate debug profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
568 |
Object.keys(zeroProfiles).forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
569 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
570 |
profiles[name] = concatObjects(common.main_profile_base, profiles[name]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
571 |
profiles[debugName] = concatObjects(profiles[name], common.debug_profile_base); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
572 |
}); |
42425 | 573 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
574 |
// Profiles used to run tests. Used in JPRT and Mach 5. |
34491 | 575 |
var testOnlyProfiles = { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
576 |
"run-test-jprt": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
577 |
target_os: input.build_os, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
578 |
target_cpu: input.build_cpu, |
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
579 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ], |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
580 |
labels: "test", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
581 |
environment: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
582 |
"JT_JAVA": common.boot_jdk_home |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
583 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
584 |
}, |
34491 | 585 |
|
586 |
"run-test": { |
|
587 |
target_os: input.build_os, |
|
588 |
target_cpu: input.build_cpu, |
|
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
589 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ], |
41047
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
590 |
labels: "test", |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
591 |
environment: { |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
592 |
"JT_JAVA": common.boot_jdk_home |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
593 |
} |
34491 | 594 |
} |
595 |
}; |
|
596 |
profiles = concatObjects(profiles, testOnlyProfiles); |
|
597 |
||
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
598 |
// Profiles used to run tests using Jib for internal dependencies. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
599 |
var testedProfile = input.testedProfile; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
600 |
if (testedProfile == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
601 |
testedProfile = input.build_os + "-" + input.build_cpu; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
602 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
603 |
var testOnlyProfilesPrebuilt = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
604 |
"run-test-prebuilt": { |
45824
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
605 |
target_os: input.build_os, |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
606 |
target_cpu: input.build_cpu, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
607 |
src: "src.conf", |
46210 | 608 |
dependencies: [ "jtreg", "gnumake", "boot_jdk", "jib", testedProfile + ".jdk", |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
609 |
testedProfile + ".test", "src.full" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
610 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
611 |
work_dir: input.get("src.full", "install_path") + "/test", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
612 |
environment: { |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
613 |
"JT_JAVA": common.boot_jdk_home, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
614 |
"PRODUCT_HOME": input.get(testedProfile + ".jdk", "home_path"), |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
615 |
"TEST_IMAGE_DIR": input.get(testedProfile + ".test", "home_path"), |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
616 |
"TEST_OUTPUT_DIR": input.src_top_dir |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
617 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
618 |
labels: "test" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
619 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
620 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
621 |
// If actually running the run-test-prebuilt profile, verify that the input |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
622 |
// variable is valid and if so, add the appropriate target_* values from |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
623 |
// the tested profile. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
624 |
if (input.profile == "run-test-prebuilt") { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
625 |
if (profiles[testedProfile] == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
626 |
error("testedProfile is not defined: " + testedProfile); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
627 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
628 |
} |
45824
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
629 |
if (profiles[testedProfile] != null) { |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
630 |
testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_os"] |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
631 |
= profiles[testedProfile]["target_os"]; |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
632 |
testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_cpu"] |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
633 |
= profiles[testedProfile]["target_cpu"]; |
d161a843e941
8184075: Make run-test-prebuilt profile more robust
erikj
parents:
45553
diff
changeset
|
634 |
} |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
635 |
profiles = concatObjects(profiles, testOnlyProfilesPrebuilt); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
636 |
|
43288
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
637 |
// On macosx add the devkit bin dir to the path in all the run-test profiles. |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
638 |
// This gives us a guaranteed working version of lldb for the jtreg failure handler. |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
639 |
if (input.build_os == "macosx") { |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
640 |
macosxRunTestExtra = { |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
641 |
dependencies: [ "devkit" ], |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
642 |
environment_path: input.get("devkit", "install_path") |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
643 |
+ "/Xcode.app/Contents/Developer/usr/bin" |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
644 |
} |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
645 |
profiles["run-test"] = concatObjects(profiles["run-test"], macosxRunTestExtra); |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
646 |
profiles["run-test-jprt"] = concatObjects(profiles["run-test-jprt"], macosxRunTestExtra); |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
647 |
profiles["run-test-prebuilt"] = concatObjects(profiles["run-test-prebuilt"], macosxRunTestExtra); |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
648 |
} |
58b8748ef90d
8173476: Provide lldb from devkit when running tests on macosx
erikj
parents:
43049
diff
changeset
|
649 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
650 |
// |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
651 |
// Define artifacts for profiles |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
652 |
// |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
653 |
// Macosx bundles are named osx |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
654 |
// tar.gz. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
655 |
var artifactData = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
656 |
"linux-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
657 |
platform: "linux-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
658 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
659 |
"linux-x86": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
660 |
platform: "linux-x86", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
661 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
662 |
"macosx-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
663 |
platform: "osx-x64", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
664 |
jdk_subdir: "jdk-" + data.version + ".jdk/Contents/Home", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
665 |
jre_subdir: "jre-" + data.version + ".jre/Contents/Home" |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
666 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
667 |
"solaris-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
668 |
platform: "solaris-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
669 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
670 |
"solaris-sparcv9": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
671 |
platform: "solaris-sparcv9", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
672 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
673 |
"windows-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
674 |
platform: "windows-x64", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
675 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
676 |
"windows-x86": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
677 |
platform: "windows-x86", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
678 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
679 |
"linux-arm64": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
680 |
platform: "linux-arm64-vfp-hflt", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
681 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
682 |
"linux-arm-vfp-hflt": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
683 |
platform: "linux-arm32-vfp-hflt", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
684 |
}, |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
685 |
"linux-arm-vfp-hflt-dyn": { |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
686 |
platform: "linux-arm32-vfp-hflt-dyn", |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
687 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
688 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
689 |
// Generate common artifacts for all main profiles |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
690 |
Object.keys(artifactData).forEach(function (name) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
691 |
profiles[name] = concatObjects(profiles[name], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
692 |
common.main_profile_artifacts(artifactData[name])); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
693 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
694 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
695 |
// Generate common artifacts for all debug profiles |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
696 |
Object.keys(artifactData).forEach(function (name) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
697 |
var debugName = name + common.debug_suffix; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
698 |
profiles[debugName] = concatObjects(profiles[debugName], |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
699 |
common.debug_profile_artifacts(artifactData[name])); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
700 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
701 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
702 |
// Extra profile specific artifacts |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
703 |
profilesArtifacts = { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
704 |
"linux-x64": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
705 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
706 |
doc_api_spec: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
707 |
local: "bundles/\\(jdk.*doc-api-spec.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
708 |
remote: [ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
709 |
"bundles/common/jdk-" + data.version + "_doc-api-spec.tar.gz", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
710 |
"bundles/linux-x64/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
711 |
], |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
712 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
713 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
714 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
715 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
716 |
"linux-x64-open": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
717 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
718 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
719 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
720 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
721 |
"bundles/openjdk/GPL/linux-x64/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
722 |
+ "_linux-x64_bin.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
723 |
"bundles/openjdk/GPL/linux-x64/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
724 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
725 |
subdir: "jdk-" + data.version |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
726 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
727 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
728 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
729 |
remote: "bundles/openjdk/GPL/linux-x64/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
730 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
731 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
732 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
733 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
734 |
"bundles/openjdk/GPL/linux-x64/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
735 |
+ "_linux-x64_bin-tests.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
736 |
"bundles/openjdk/GPL/linux-x64/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
737 |
] |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
738 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
739 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
740 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
741 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
742 |
"bundles/openjdk/GPL/linux-x64/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
743 |
+ "_linux-x64_bin-symbols.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
744 |
"bundles/openjdk/GPL/linux-x64/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
745 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
746 |
subdir: "jdk-" + data.version |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
747 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
748 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
749 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
750 |
remote: "bundles/openjdk/GPL/linux-x64/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
751 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
752 |
doc_api_spec: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
753 |
local: "bundles/\\(jdk.*doc-api-spec.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
754 |
remote: "bundles/openjdk/GPL/linux-x64/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
755 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
756 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
757 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
758 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
759 |
"linux-x86-open": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
760 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
761 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
762 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
763 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
764 |
"bundles/openjdk/GPL/linux-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
765 |
+ "_linux-x86_bin.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
766 |
"bundles/openjdk/GPL/linux-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
767 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
768 |
subdir: "jdk-" + data.version |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
769 |
}, |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
770 |
jdk_symbols: { |
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
771 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
772 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
773 |
"bundles/openjdk/GPL/linux-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
774 |
+ "_linux-x86_bin-symbols.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
775 |
"bundles/openjdk/GPL/linux-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
776 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
777 |
subdir: "jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
778 |
}, |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
779 |
test: { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
780 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
781 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
782 |
"bundles/openjdk/GPL/linux-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
783 |
+ "_linux-x86_bin-tests.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
784 |
"bundles/openjdk/GPL/linux-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
785 |
] |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
786 |
}, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
787 |
jre: { |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
788 |
// This regexp needs to not match the compact* files below |
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
789 |
local: "bundles/\\(jre.*[+][0-9]\\{1,\\}_linux-x86_bin.tar.gz\\)", |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
790 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
791 |
}, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
792 |
jre_compact1: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
793 |
local: "bundles/\\(jre.*-compact1_linux-x86_bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
794 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
795 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
796 |
jre_compact2: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
797 |
local: "bundles/\\(jre.*-compact2_linux-x86_bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
798 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
799 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
800 |
jre_compact3: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
801 |
local: "bundles/\\(jre.*-compact3_linux-x86_bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
802 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
43043
bf14e07c9075
8172241: Cleanup mistakes in jib publish support change
erikj
parents:
42980
diff
changeset
|
803 |
}, |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
804 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
805 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
806 |
|
47063
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
807 |
"macosx-x64-open": { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
808 |
artifacts: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
809 |
jdk: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
810 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
811 |
remote: [ |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
812 |
"bundles/openjdk/GPL/osx-x64/jdk-" + data.version |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
813 |
+ "_osx-x64_bin.tar.gz", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
814 |
"bundles/openjdk/GPL/osx-x64/\\1" |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
815 |
], |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
816 |
subdir: "jdk-" + data.version |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
817 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
818 |
jre: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
819 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
820 |
remote: "bundles/openjdk/GPL/osx-x64/\\1", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
821 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
822 |
test: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
823 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
824 |
remote: [ |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
825 |
"bundles/openjdk/GPL/osx-x64/jdk-" + data.version |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
826 |
+ "_osx-x64_bin-tests.tar.gz", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
827 |
"bundles/openjdk/GPL/osx-x64/\\1" |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
828 |
] |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
829 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
830 |
jdk_symbols: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
831 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
832 |
remote: [ |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
833 |
"bundles/openjdk/GPL/osx-x64/jdk-" + data.version |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
834 |
+ "_osx-x64_bin-symbols.tar.gz", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
835 |
"bundles/openjdk/GPL/osx-x64/\\1" |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
836 |
], |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
837 |
subdir: "jdk-" + data.version |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
838 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
839 |
jre_symbols: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
840 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
841 |
remote: "bundles/openjdk/GPL/osx-x64/\\1", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
842 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
843 |
doc_api_spec: { |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
844 |
local: "bundles/\\(jdk.*doc-api-spec.tar.gz\\)", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
845 |
remote: "bundles/openjdk/GPL/osx-x64/\\1", |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
846 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
847 |
} |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
848 |
}, |
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
849 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
850 |
"windows-x86-open": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
851 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
852 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
853 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
854 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
855 |
"bundles/openjdk/GPL/windows-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
856 |
+ "_windows-x86_bin.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
857 |
"bundles/openjdk/GPL/windows-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
858 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
859 |
subdir: "jdk-" + data.version |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
860 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
861 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
862 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
863 |
remote: "bundles/openjdk/GPL/windows-x86/\\1" |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
864 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
865 |
test: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
866 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
867 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
868 |
"bundles/openjdk/GPL/windows-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
869 |
+ "_windows-x86_bin-tests.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
870 |
"bundles/openjdk/GPL/windows-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
871 |
] |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
872 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
873 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
874 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
875 |
remote: [ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
876 |
"bundles/openjdk/GPL/windows-x86/jdk-" + data.version |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
877 |
+ "_windows-x86_bin-symbols.tar.gz", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
878 |
"bundles/openjdk/GPL/windows-x86/\\1" |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
879 |
], |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
880 |
subdir: "jdk-" + data.version |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
881 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
882 |
jre_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
883 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
884 |
remote: "bundles/openjdk/GPL/windows-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
885 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
886 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
887 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
888 |
|
47292
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
889 |
"windows-x64-open": { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
890 |
artifacts: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
891 |
jdk: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
892 |
local: "bundles/\\(jdk.*bin.tar.gz\\)", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
893 |
remote: [ |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
894 |
"bundles/openjdk/GPL/windows-x64/jdk-" + data.version |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
895 |
+ "_windows-x64_bin.tar.gz", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
896 |
"bundles/openjdk/GPL/windows-x64/\\1" |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
897 |
], |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
898 |
subdir: "jdk-" + data.version |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
899 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
900 |
jre: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
901 |
local: "bundles/\\(jre.*bin.tar.gz\\)", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
902 |
remote: "bundles/openjdk/GPL/windows-x64/\\1" |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
903 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
904 |
test: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
905 |
local: "bundles/\\(jdk.*bin-tests.tar.gz\\)", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
906 |
remote: [ |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
907 |
"bundles/openjdk/GPL/windows-x64/jdk-" + data.version |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
908 |
+ "_windows-x64_bin-tests.tar.gz", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
909 |
"bundles/openjdk/GPL/windows-x64/\\1" |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
910 |
] |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
911 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
912 |
jdk_symbols: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
913 |
local: "bundles/\\(jdk.*bin-symbols.tar.gz\\)", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
914 |
remote: [ |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
915 |
"bundles/openjdk/GPL/windows-x64/jdk-" + data.version |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
916 |
+ "_windows-x64_bin-symbols.tar.gz", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
917 |
"bundles/openjdk/GPL/windows-x64/\\1" |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
918 |
], |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
919 |
subdir: "jdk-" + data.version |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
920 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
921 |
jre_symbols: { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
922 |
local: "bundles/\\(jre.*bin-symbols.tar.gz\\)", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
923 |
remote: "bundles/openjdk/GPL/windows-x64/\\1", |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
924 |
} |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
925 |
} |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
926 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
927 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
928 |
"linux-x86-open-debug": { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
929 |
artifacts: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
930 |
jdk: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
931 |
local: "bundles/\\(jdk.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
932 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
933 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
934 |
jre: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
935 |
local: "bundles/\\(jre.*bin-debug.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
936 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
937 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
938 |
jdk_symbols: { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
939 |
local: "bundles/\\(jdk.*bin-debug-symbols.tar.gz\\)", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
940 |
remote: "bundles/openjdk/GPL/profile/linux-x86/\\1", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
941 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
942 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
943 |
}, |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
944 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
945 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
946 |
profiles = concatObjects(profiles, profilesArtifacts); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
947 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
948 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
949 |
// Define the reference implementation profiles. These are basically the same |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
950 |
// as the open profiles, but upload artifacts to a different location and |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
951 |
// are only defined for specific platforms. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
952 |
profiles["linux-x64-ri"] = clone(profiles["linux-x64-open"]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
953 |
profiles["linux-x86-ri"] = clone(profiles["linux-x86-open"]); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
954 |
profiles["linux-x86-ri-debug"] = clone(profiles["linux-x86-open-debug"]); |
47063
631b34dbf0da
8185928: Generate OpenJDK builds for Mac platform JDK 9.0.3 and beyond in Mach 5
erikj
parents:
46939
diff
changeset
|
955 |
profiles["macosx-x64-ri"] = clone(profiles["macosx-x64-open"]); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
956 |
profiles["windows-x86-ri"] = clone(profiles["windows-x86-open"]); |
47292
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
957 |
profiles["windows-x64-ri"] = clone(profiles["windows-x64-open"]); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
958 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
959 |
// Generate artifacts for ri profiles |
47292
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
960 |
[ "linux-x64-ri", "linux-x86-ri", "linux-x86-ri-debug", "macosx-x64-ri", "windows-x86-ri", "windows-x64-ri" ] |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
961 |
.forEach(function (name) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
962 |
// Rewrite all remote dirs to "bundles/openjdk/BCL/..." |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
963 |
for (artifactName in profiles[name].artifacts) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
964 |
var artifact = profiles[name].artifacts[artifactName]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
965 |
artifact.remote = replaceAll("\/GPL\/", "/BCL/", |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
966 |
(artifact.remote != null ? artifact.remote : artifact.local)); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
967 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
968 |
}); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
969 |
|
45510
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
970 |
// The windows ri profile needs to add the freetype license file |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
971 |
profilesRiFreetype = { |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
972 |
"windows-x86-ri": { |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
973 |
configure_args: "--with-freetype-license=" |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
974 |
+ input.get("freetype", "install_path") |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
975 |
+ "/freetype-2.7.1-v120-x86/freetype.md" |
47292
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
976 |
}, |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
977 |
"windows-x64-ri": { |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
978 |
configure_args: "--with-freetype-license=" |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
979 |
+ input.get("freetype", "install_path") |
798610a8a552
8188038: Add Windows-x64-open bundles to jib-profiles.js
ctornqvi
parents:
47217
diff
changeset
|
980 |
+ "/freetype-2.7.1-v120-x64/freetype.md" |
45510
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
981 |
} |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
982 |
}; |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
983 |
profiles = concatObjects(profiles, profilesRiFreetype); |
ef977f09bac8
8178064: OpenJDK RI binary should include the license file for freetype
erikj
parents:
45107
diff
changeset
|
984 |
|
34491 | 985 |
// Generate the missing platform attributes |
986 |
profiles = generatePlatformAttributes(profiles); |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
987 |
profiles = generateDefaultMakeTargetsConfigureArg(common, profiles); |
34491 | 988 |
return profiles; |
989 |
}; |
|
990 |
||
991 |
/** |
|
992 |
* Generate the dependencies part of the configuration |
|
993 |
* |
|
994 |
* @param input External data to use for generating the configuration |
|
995 |
* @param common The common values |
|
996 |
* @returns {{}} Dependencies part of configuration |
|
997 |
*/ |
|
34496 | 998 |
var getJibProfilesDependencies = function (input, common) { |
34491 | 999 |
|
1000 |
var devkit_platform_revisions = { |
|
47433
6331ad007664
8189119: Devkit for Linux needs to include fontconfig-devel
erikj
parents:
47365
diff
changeset
|
1001 |
linux_x64: "gcc4.9.2-OEL6.4+1.2", |
34491 | 1002 |
macosx_x64: "Xcode6.3-MacOSX10.9+1.0", |
34595
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
34496
diff
changeset
|
1003 |
solaris_x64: "SS12u4-Solaris11u1+1.0", |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
34496
diff
changeset
|
1004 |
solaris_sparcv9: "SS12u4-Solaris11u1+1.0", |
44625
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
1005 |
windows_x64: "VS2013SP4+1.0", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
1006 |
linux_aarch64: "gcc-linaro-aarch64-linux-gnu-4.8-2013.11_linux+1.0", |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
1007 |
linux_arm: (input.profile != null && input.profile.indexOf("hflt") >= 0 |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
1008 |
? "gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux+1.0" |
cf100f579077
8177822: Move closed jib configuration for arm platforms to open
erikj
parents:
44513
diff
changeset
|
1009 |
: "arm-linaro-4.7+1.0") |
34491 | 1010 |
}; |
1011 |
||
1012 |
var devkit_platform = (input.target_cpu == "x86" |
|
1013 |
? input.target_os + "_x64" |
|
1014 |
: input.target_platform); |
|
1015 |
||
47364 | 1016 |
var boot_jdk_platform = (input.build_os == "macosx" ? "osx" : input.build_os) |
1017 |
+ "-" + input.build_cpu; |
|
1018 |
||
34491 | 1019 |
var dependencies = { |
1020 |
||
1021 |
boot_jdk: { |
|
47364 | 1022 |
server: "jpg", |
1023 |
product: "jdk", |
|
47365 | 1024 |
version: common.boot_jdk_version, |
47364 | 1025 |
build_number: "181", |
47365 | 1026 |
file: "bundles/" + boot_jdk_platform + "/jdk-" + common.boot_jdk_version + "_" |
47364 | 1027 |
+ boot_jdk_platform + "_bin.tar.gz", |
47365 | 1028 |
configure_args: "--with-boot-jdk=" + common.boot_jdk_home, |
1029 |
environment_path: common.boot_jdk_home + "/bin" |
|
34491 | 1030 |
}, |
1031 |
||
1032 |
devkit: { |
|
1033 |
organization: common.organization, |
|
1034 |
ext: "tar.gz", |
|
1035 |
module: "devkit-" + devkit_platform, |
|
1036 |
revision: devkit_platform_revisions[devkit_platform] |
|
1037 |
}, |
|
1038 |
||
1039 |
build_devkit: { |
|
1040 |
organization: common.organization, |
|
1041 |
ext: "tar.gz", |
|
1042 |
module: "devkit-" + input.build_platform, |
|
1043 |
revision: devkit_platform_revisions[input.build_platform] |
|
1044 |
}, |
|
1045 |
||
1046 |
cups: { |
|
1047 |
organization: common.organization, |
|
1048 |
ext: "tar.gz", |
|
1049 |
revision: "1.0118+1.0" |
|
1050 |
}, |
|
1051 |
||
1052 |
jtreg: { |
|
1053 |
server: "javare", |
|
36506 | 1054 |
revision: "4.2", |
46251 | 1055 |
build_number: "b08", |
34491 | 1056 |
checksum_file: "MD5_VALUES", |
36506 | 1057 |
file: "jtreg_bin-4.2.zip", |
41047
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
1058 |
environment_name: "JT_HOME", |
de6f69208f82
8164301: jib should provide a JDK for running jtreg with
erikj
parents:
40241
diff
changeset
|
1059 |
environment_path: input.get("jtreg", "install_path") + "/jtreg/bin" |
34491 | 1060 |
}, |
1061 |
||
1062 |
gnumake: { |
|
1063 |
organization: common.organization, |
|
1064 |
ext: "tar.gz", |
|
1065 |
revision: "4.0+1.0", |
|
1066 |
||
1067 |
module: (input.build_os == "windows" |
|
1068 |
? "gnumake-" + input.build_osenv_platform |
|
1069 |
: "gnumake-" + input.build_platform), |
|
1070 |
||
1071 |
configure_args: (input.build_os == "windows" |
|
1072 |
? "MAKE=" + input.get("gnumake", "install_path") + "/cygwin/bin/make" |
|
1073 |
: "MAKE=" + input.get("gnumake", "install_path") + "/bin/make"), |
|
1074 |
||
1075 |
environment_path: (input.build_os == "windows" |
|
1076 |
? input.get("gnumake", "install_path") + "/cygwin/bin" |
|
1077 |
: input.get("gnumake", "install_path") + "/bin") |
|
1078 |
}, |
|
1079 |
||
1080 |
freetype: { |
|
1081 |
organization: common.organization, |
|
1082 |
ext: "tar.gz", |
|
44399 | 1083 |
revision: "2.7.1-v120+1.0", |
34491 | 1084 |
module: "freetype-" + input.target_platform |
44727 | 1085 |
}, |
1086 |
||
1087 |
graphviz: { |
|
1088 |
organization: common.organization, |
|
1089 |
ext: "tar.gz", |
|
1090 |
revision: "2.38.0-1+1.1", |
|
1091 |
module: "graphviz-" + input.target_platform, |
|
45107 | 1092 |
configure_args: "DOT=" + input.get("graphviz", "install_path") + "/dot", |
1093 |
environment_path: input.get("graphviz", "install_path") |
|
44727 | 1094 |
}, |
44734 | 1095 |
|
1096 |
pandoc: { |
|
1097 |
organization: common.organization, |
|
1098 |
ext: "tar.gz", |
|
1099 |
revision: "1.17.2+1.0", |
|
1100 |
module: "pandoc-" + input.target_platform, |
|
45107 | 1101 |
configure_args: "PANDOC=" + input.get("pandoc", "install_path") + "/pandoc/pandoc", |
1102 |
environment_path: input.get("pandoc", "install_path") + "/pandoc" |
|
44734 | 1103 |
}, |
46196
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1104 |
// This adds java jib as a dependency for the test artifacts resolver |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1105 |
jib: { |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1106 |
organization: "com.oracle.java.jib", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1107 |
ext: "zip", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1108 |
classifier: "distribution", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1109 |
revision: "3.0-SNAPSHOT", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1110 |
environment_name: "JIB_JAR", |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1111 |
environment_value: input.get("jib", "install_path") |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1112 |
+ "/jib-3.0-SNAPSHOT-distribution/lib/jib-3.0-SNAPSHOT.jar" |
822ca950ddaa
8175300: Enable artifact resolution for jtreg tests
ctornqvi
parents:
46193
diff
changeset
|
1113 |
} |
34491 | 1114 |
}; |
1115 |
||
46192 | 1116 |
// Need to add a value for the Visual Studio tools variable to make |
1117 |
// jaot be able to pick up the Visual Studio linker in testing. |
|
1118 |
if (input.target_os == "windows") { |
|
1119 |
dependencies.devkit.environment = { |
|
1120 |
VS120COMNTOOLS: input.get("devkit", "install_path") + "/Common7/Tools" |
|
1121 |
}; |
|
1122 |
} |
|
1123 |
||
34491 | 1124 |
return dependencies; |
1125 |
}; |
|
1126 |
||
1127 |
/** |
|
1128 |
* Generate the missing platform attributes for profiles |
|
1129 |
* |
|
1130 |
* @param profiles Profiles map to generate attributes on |
|
1131 |
* @returns {{}} New profiles map with platform attributes fully filled in |
|
1132 |
*/ |
|
1133 |
var generatePlatformAttributes = function (profiles) { |
|
1134 |
var ret = concatObjects(profiles, {}); |
|
1135 |
for (var profile in profiles) { |
|
1136 |
if (ret[profile].build_os == null) { |
|
1137 |
ret[profile].build_os = ret[profile].target_os; |
|
1138 |
} |
|
1139 |
if (ret[profile].build_cpu == null) { |
|
1140 |
ret[profile].build_cpu = ret[profile].target_cpu; |
|
1141 |
} |
|
1142 |
ret[profile].target_platform = ret[profile].target_os + "_" + ret[profile].target_cpu; |
|
1143 |
ret[profile].build_platform = ret[profile].build_os + "_" + ret[profile].build_cpu; |
|
1144 |
} |
|
1145 |
return ret; |
|
1146 |
}; |
|
1147 |
||
1148 |
/** |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1149 |
* The default_make_targets attribute on a profile is not a real Jib attribute. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1150 |
* This function rewrites that attribute into the corresponding configure arg. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1151 |
* Calling this function multiple times on the same profiles object is safe. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1152 |
* |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1153 |
* @param common Common values |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1154 |
* @param profiles Profiles map to rewrite profiles for |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1155 |
* @returns {{}} New map of profiles with the make targets converted |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1156 |
*/ |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1157 |
var generateDefaultMakeTargetsConfigureArg = function (common, profiles) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1158 |
var ret = concatObjects(profiles, {}); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1159 |
for (var profile in ret) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1160 |
if (ret[profile]["default_make_targets"] != null) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1161 |
var targetsString = concat(ret[profile].default_make_targets).join(" "); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1162 |
// Iterate over all configure args and see if --with-default-make-target |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1163 |
// is already there and change it, otherwise add it. |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1164 |
var found = false; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1165 |
for (var i in ret[profile].configure_args) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1166 |
var arg = ret[profile].configure_args[i]; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1167 |
if (arg != null && arg.startsWith("--with-default-make-target=")) { |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1168 |
found = true; |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1169 |
ret[profile].configure_args[i] |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1170 |
= "--with-default-make-target=" + targetsString; |
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1171 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1172 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1173 |
if (!found) { |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1174 |
ret[profile].configure_args = concat( |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1175 |
ret[profile].configure_args, |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1176 |
"--with-default-make-target=" + targetsString); |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1177 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1178 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1179 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1180 |
return ret; |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1181 |
} |
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1182 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1183 |
var getBuildId = function (input) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1184 |
if (input.build_id != null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1185 |
return input.build_id; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1186 |
} else { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1187 |
var topdir = new java.io.File(__DIR__, "../..").getCanonicalFile().getName(); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1188 |
var userName = java.lang.System.getProperty("user.name"); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1189 |
return userName + "." + topdir; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1190 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1191 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1192 |
|
37649
3809534d4531
8154841: Let different Jib profiles have different default make targets
erikj
parents:
37407
diff
changeset
|
1193 |
/** |
34491 | 1194 |
* Deep clones an object tree. |
1195 |
* |
|
1196 |
* @param o Object to clone |
|
1197 |
* @returns {{}} Clone of o |
|
1198 |
*/ |
|
1199 |
var clone = function (o) { |
|
1200 |
return JSON.parse(JSON.stringify(o)); |
|
1201 |
}; |
|
1202 |
||
1203 |
/** |
|
1204 |
* Concatenates all arguments into a new array |
|
1205 |
* |
|
1206 |
* @returns {Array.<T>} New array containing all arguments |
|
1207 |
*/ |
|
1208 |
var concat = function () { |
|
1209 |
return Array.prototype.concat.apply([], arguments); |
|
1210 |
}; |
|
1211 |
||
1212 |
/** |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1213 |
* Takes a String or Array of Strings and does a replace operation on each |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1214 |
* of them. |
34491 | 1215 |
* |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1216 |
* @param pattern Pattern to look for |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1217 |
* @param replacement Replacement text to insert |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1218 |
* @param a String or Array of Strings to replace |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1219 |
* @returns {Array} Either a new array or a new string depending on the input |
34491 | 1220 |
*/ |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1221 |
var replaceAll = function (pattern, replacement, a) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1222 |
// If a is an array |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1223 |
if (Array === a.constructor) { |
34491 | 1224 |
var newA = []; |
1225 |
for (var i in a) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1226 |
newA.push(a[i].replace(pattern, replacement)); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1227 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1228 |
return newA; |
34491 | 1229 |
} else { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1230 |
return a.replace(pattern, replacement); |
34491 | 1231 |
} |
1232 |
}; |
|
1233 |
||
1234 |
/** |
|
1235 |
* Deep concatenation of two objects. For each node encountered, merge |
|
1236 |
* the contents with the corresponding node in the other object tree, |
|
1237 |
* treating all strings as array elements. |
|
1238 |
* |
|
1239 |
* @param o1 Object to concatenate |
|
1240 |
* @param o2 Object to concatenate |
|
1241 |
* @returns {{}} New object tree containing the concatenation of o1 and o2 |
|
1242 |
*/ |
|
1243 |
var concatObjects = function (o1, o2) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1244 |
if (o1 == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1245 |
return clone(o2); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1246 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1247 |
if (o2 == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1248 |
return clone(o1); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1249 |
} |
34491 | 1250 |
var ret = {}; |
1251 |
for (var a in o1) { |
|
1252 |
if (o2[a] == null) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1253 |
ret[a] = clone(o1[a]); |
34491 | 1254 |
} |
1255 |
} |
|
1256 |
for (var a in o2) { |
|
1257 |
if (o1[a] == null) { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1258 |
ret[a] = clone(o2[a]); |
34491 | 1259 |
} else { |
1260 |
if (typeof o1[a] == 'string') { |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1261 |
ret[a] = clone([o1[a]].concat(o2[a])); |
34491 | 1262 |
} else if (Array.isArray(o1[a])) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1263 |
ret[a] = clone(o1[a].concat(o2[a])); |
34491 | 1264 |
} else if (typeof o1[a] == 'object') { |
1265 |
ret[a] = concatObjects(o1[a], o2[a]); |
|
1266 |
} |
|
1267 |
} |
|
1268 |
} |
|
1269 |
return ret; |
|
1270 |
}; |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1271 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1272 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1273 |
* Constructs the numeric version string from reading the |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1274 |
* common/autoconf/version-numbers file and removing all trailing ".0". |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1275 |
* |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1276 |
* @param major Override major version |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1277 |
* @param minor Override minor version |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1278 |
* @param security Override security version |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1279 |
* @param patch Override patch version |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1280 |
* @returns {String} The numeric version string |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1281 |
*/ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1282 |
var getVersion = function (major, minor, security, patch) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1283 |
var version_numbers = getVersionNumbers(); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1284 |
var version = (major != null ? major : version_numbers.get("DEFAULT_VERSION_MAJOR")) |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1285 |
+ "." + (minor != null ? minor : version_numbers.get("DEFAULT_VERSION_MINOR")) |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1286 |
+ "." + (security != null ? security : version_numbers.get("DEFAULT_VERSION_SECURITY")) |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1287 |
+ "." + (patch != null ? patch : version_numbers.get("DEFAULT_VERSION_PATCH")); |
43600 | 1288 |
while (version.match(".*\\.0$")) { |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1289 |
version = version.substring(0, version.length - 2); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1290 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1291 |
return version; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1292 |
}; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1293 |
|
45048
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1294 |
/** |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1295 |
* Constructs the common version configure args based on build type and |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1296 |
* other version inputs |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1297 |
*/ |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1298 |
var versionArgs = function(input, common) { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1299 |
var args = ["--with-version-build=" + common.build_number]; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1300 |
if (input.build_type == "promoted") { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1301 |
args = concat(args, |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1302 |
// This needs to be changed when we start building release candidates |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1303 |
"--with-version-pre=ea", |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1304 |
"--without-version-opt"); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1305 |
} else { |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1306 |
args = concat(args, "--with-version-opt=" + common.build_id); |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1307 |
} |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1308 |
return args; |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1309 |
} |
665cd82e98dc
8180081: Adjust Jib and JDL configuration for 10 to support promotable builds
erikj
parents:
44894
diff
changeset
|
1310 |
|
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1311 |
// Properties representation of the common/autoconf/version-numbers file. Lazily |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1312 |
// initiated by the function below. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1313 |
var version_numbers; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1314 |
|
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1315 |
/** |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1316 |
* Read the common/autoconf/version-numbers file into a Properties object. |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1317 |
* |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1318 |
* @returns {java.utilProperties} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1319 |
*/ |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1320 |
var getVersionNumbers = function () { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1321 |
// Read version information from common/autoconf/version-numbers |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1322 |
if (version_numbers == null) { |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1323 |
version_numbers = new java.util.Properties(); |
47217 | 1324 |
var stream = new java.io.FileInputStream(__DIR__ + "/../autoconf/version-numbers"); |
42848
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1325 |
version_numbers.load(stream); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1326 |
stream.close(); |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1327 |
} |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1328 |
return version_numbers; |
27ad8b2418f7
8170741: Enable uploading of built artifacts through Jib
erikj
parents:
42425
diff
changeset
|
1329 |
} |