mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
override es snapshots from scripts/es so it works locally too
This commit is contained in:
parent
567d0ef597
commit
9e8ea8fd64
2 changed files with 7 additions and 3 deletions
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue