set env CHEF_TELEMETRY_URL in CI

Signed-off-by: Sathish <sbabu@progress.com>
This commit is contained in:
Sathish 2024-08-06 18:42:54 +05:30
parent 563c2449b9
commit f97d04ed41
No known key found for this signature in database
GPG key ID: EA8EF429CCD1070E
2 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,8 @@ vault version
echo "--- fetching License serverl url and keys from vault"
# Note: Currently, the value for the local license server is a static IP address. Please update this to a DNS name when available.
$Env:CHEF_LICENSE_SERVER=vault kv get -field ci secret/inspec/licensing/server
# Note: Currently, this returns blank response
$Env:CHEF_TELEMETRY_URL=vault kv get -field ci secret/inspec/telemetry/server
echo "--- verifying if environment variables are set"

View file

@ -30,6 +30,8 @@ unzip -o $VAULT_HOME/vault.zip -d $VAULT_HOME
echo "--- fetching License serverl url and keys from vault"
# Note: Currently, the value for the local license server is a static IP address. Please update this to a DNS name when available.
export CHEF_LICENSE_SERVER=$($VAULT_HOME/vault kv get -field ci secret/inspec/licensing/server)
# Note: Currently, this returns blank response
export CHEF_TELEMETRY_URL=$($VAULT_HOME/vault kv get -field ci secret/inspec/telemetry/server)
if [ -n "${CI_ENABLE_COVERAGE:-}" ]; then
echo "--- fetching Sonar token from vault"