mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[BUILD] Change ordering of Java compilation and ML C++ notice extraction
May help to avoid problems with the speed of temporary AWS credentials propagation (see elastic/x-pack-logstash#73) Original commit: elastic/x-pack-elasticsearch@c78e00cda5
This commit is contained in:
parent
b689159077
commit
fa95474ab8
@ -117,7 +117,7 @@ Closure setAwsCreds = {
|
||||
break;
|
||||
} catch (AmazonServiceException e) {
|
||||
if (e.getStatusCode() != 403 || retries == 0) {
|
||||
throw new GradleException('Could not access ml-cpp artifacts. Timed out after 60 attempts', e)
|
||||
throw new GradleException('Could not access ml-cpp artifacts. Timed out after 60 seconds', e)
|
||||
}
|
||||
}
|
||||
sleep(500)
|
||||
@ -279,6 +279,10 @@ forbiddenPatterns {
|
||||
task extractNativeLicenses(type: Copy) {
|
||||
into "${buildDir}"
|
||||
include 'platform/licenses/**'
|
||||
// This is to reduce the risk of credentials used to access the native bundle not
|
||||
// having propagated throughout AWS by the time it's downloaded; the time needed
|
||||
// to compile the Java is extra time during which the propagation can take place
|
||||
shouldRunAfter compileJava
|
||||
}
|
||||
|
||||
// TODO: standardize packaging config for plugins
|
||||
|
Loading…
x
Reference in New Issue
Block a user