From 4a38c63f744a92f8974b7535ae2807a30643c8dc Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 25 Jan 2019 11:56:41 -0800 Subject: [PATCH] Pass distribution type through to docs tests This commit fixes the distribution flavor passed to the docs tests to be the same as the distribution. These two values are now in sync (either oss or default) for the docs tests. --- .../groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy index 15cef3f472817..ce76ad5d28fc6 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy @@ -45,8 +45,7 @@ public class DocsTestPlugin extends RestTestPlugin { '\\{version\\}': Version.fromString(VersionProperties.elasticsearch).toString(), '\\{version_qualified\\}': VersionProperties.elasticsearch, '\\{lucene_version\\}' : VersionProperties.lucene.replaceAll('-snapshot-\\w+$', ''), - '\\{build_flavor\\}' : - project.integTestCluster.distribution.startsWith('oss-') ? 'oss' : 'default', + '\\{build_flavor\\}' : project.integTestCluster.distribution, ] Task listSnippets = project.tasks.create('listSnippets', SnippetsTask) listSnippets.group 'Docs'