use new rest-api location for 2.x +

This commit is contained in:
spalger
2016-02-20 13:21:59 -08:00
parent 142fe1e452
commit 936ac45219

View File

@ -62,7 +62,7 @@ var paths = {
return fromRoot('src/_elasticsearch_' + _.snakeCase(branch) + '.tar');
},
getSpecPathInRepo: function (branch) {
return /^(master|2\.)/.test(branch) ? 'rest-api-spec/src/main/resources/rest-api-spec' : 'rest-api-spec';
return /^v?(master|[2-9]\.)/.test(branch) ? 'rest-api-spec/src/main/resources/rest-api-spec' : 'rest-api-spec';
}
};