mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore(NA): disables FORCE_COLOR temporarily when executing node interpreter on the cloud artifacts deployment scripts (#162742)
Closes https://github.com/elastic/kibana/issues/162756 This PR fixes a problem introduced after the merge of https://github.com/elastic/kibana/pull/160289 Looks like the behaviour of node regarding the use of the `FORCE_COLOR` flag is now propagated differently when cashing the output of a given node interpreter run in a bash variable which was affecting the script and making it to fail when casting a number string to a number. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
96e6eb92f2
commit
f98172291a
1 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,9 @@ export CLOUD_DEPLOYMENT_ELASTICSEARCH_URL=$(ecctl deployment show "$CLOUD_DEPLOY
|
|||
echo "Kibana: $CLOUD_DEPLOYMENT_KIBANA_URL"
|
||||
echo "ES: $CLOUD_DEPLOYMENT_ELASTICSEARCH_URL"
|
||||
|
||||
# Disable ansi color output for Node.js as we want to get plain values when executing node as a script runner below
|
||||
export FORCE_COLOR=0
|
||||
|
||||
export TEST_KIBANA_PROTOCOL=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).protocol.replace(':', ''))")
|
||||
export TEST_KIBANA_HOSTNAME=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).hostname)")
|
||||
export TEST_KIBANA_PORT=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_KIBANA_URL).port || 443)")
|
||||
|
@ -81,6 +84,9 @@ export TEST_ES_PORT=$(node -e "console.log(new URL(process.env.CLOUD_DEPLOYMENT_
|
|||
export TEST_ES_USERNAME="$CLOUD_DEPLOYMENT_USERNAME"
|
||||
export TEST_ES_PASSWORD="$CLOUD_DEPLOYMENT_PASSWORD"
|
||||
|
||||
# Enabling ansi color output for Node.js again as we don't need to use it as a script interpreter anymore
|
||||
export FORCE_COLOR=1
|
||||
|
||||
export TEST_BROWSER_HEADLESS=1
|
||||
|
||||
# Error: attempted to use the "es" service to fetch Elasticsearch version info but the request failed: ConnectionError: self signed certificate in certificate chain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue