Build: handle core's change to data directory
Core changed how the data directory is configured so we have to
conform to the new way.
Original commit: elastic/x-pack-elasticsearch@360e2fea1a053389c9718168ed1c360debd013d7
@@ -109,7 +109,7 @@ for (boolean withSystemKey: [true, false]) {
distribution = 'zip'
clusterName = 'rolling-upgrade'
unicastTransportUri = { seedNode, node, ant -> oldClusterTest.nodes.get(0).transportUri() }
- dataDir = "${-> oldClusterTest.nodes[1].dataDir}"
+ dataDir = { nodeNumber -> oldClusterTest.nodes[1].dataDir }
waitCondition = waitWithAuth
setting 'xpack.ssl.keystore.path', 'testnode.jks'
setting 'xpack.ssl.keystore.password', 'testnode'
@@ -134,7 +134,7 @@ for (boolean withSystemKey: [true, false]) {
distribution = 'zip'
clusterName = 'rolling-upgrade'
unicastTransportUri = { seedNode, node, ant -> mixedClusterTest.nodes.get(0).transportUri() }
- dataDir = "${-> oldClusterTest.nodes[0].dataDir}"
+ dataDir = { nodeNumber -> oldClusterTest.nodes[1].dataDir }
waitCondition = waitWithAuth
setting 'xpack.ssl.keystore.path', 'testnode.jks'
setting 'xpack.ssl.keystore.password', 'testnode'
