Browse Source

check if property 'inFipsJvm' exists before accessing it (#44306)

The intake build failed as it could not find the property 'inFipsJvm' which is set only if it is in that mode.
Yogesh Gaikwad 6 years ago
parent
commit
79d46cc2bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/repository-hdfs/build.gradle

+ 1 - 1
plugins/repository-hdfs/build.gradle

@@ -132,7 +132,7 @@ for (String integTestTaskName : ['integTestHa', 'integTestSecure', 'integTestSec
     description = "Runs rest tests against an elasticsearch cluster with HDFS."
     dependsOn(project.bundlePlugin)
 
-    if (project.inFipsJvm || disabledIntegTestTaskNames.contains(integTestTaskName)) {
+    if ((project.ext.has('inFipsJvm') && project.ext.inFipsJvm) || disabledIntegTestTaskNames.contains(integTestTaskName)) {
       enabled = false;
     }