override es snapshots from scripts/es so it works locally too

This commit is contained in:
spalger 2019-09-15 07:20:22 -07:00
parent 567d0ef597
commit 9e8ea8fd64
2 changed files with 7 additions and 3 deletions

View file

@ -19,6 +19,13 @@
require('../src/setup_node_env');
// force use of manually created snapshots until live ones are available
if (!process.env.KBN_ES_SNAPSHOT_URL && !process.argv.some(function (a) { return a.startsWith('--version'); })) {
process.env.KBN_ES_SNAPSHOT_URL = 'https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-8.0.0-SNAPSHOT-{os}-x86_64.{ext}';
} else if (process.env.KBN_ES_SNAPSHOT_URL === 'false') {
delete process.env.KBN_ES_SNAPSHOT_URL;
}
var resolve = require('path').resolve;
var pkg = require('../package.json');
var kbnEs = require('@kbn/es');

View file

@ -10,9 +10,6 @@ cacheDir="${CACHE_DIR:-"$HOME/.kibana"}"
RED='\033[0;31m'
C_RESET='\033[0m' # Reset color
# force use of manually created snapshots until live ones are available
export KBN_ES_SNAPSHOT_URL="https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-master-SNAPSHOT-{os}-x86_64.{ext}"
###
### Since the Jenkins logging output collector doesn't look like a TTY
### Node/Chalk and other color libs disable their color output. But Jenkins