Skip to content

Commit

Permalink
[CHORE] Adding a temp Jenkins env variable for the migration. (#6950)
Browse files Browse the repository at this point in the history
* Adding a temp Jenkins env variable for the migration.
* Adding JENKINS_CI env variable to deploy_docs job.
  • Loading branch information
1Copenut authored Jul 17, 2023
1 parent 42ecae5 commit 3530035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .ci/jobs/elastic+eui+deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export GCE_ACCOUNT=$(vault read -field=value $VAULT_ACCOUNT)
export GITHUB_TOKEN=$(vault read -field=github_token secret/kibana-issues/dev/kibanamachine)
export JENKINS_CI="true"
unset VAULT_ROLE_ID VAULT_SECRET_ID VAULT_ADDR VAULT_TOKEN VAULT_ACCOUNT
# Run EUI build/deploy script, set in the template parameter
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN, JENKINS_CI
./scripts/deploy/deploy_docs
3 changes: 2 additions & 1 deletion .ci/jobs/elastic+eui+pull-request-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
export GCE_ACCOUNT=$(vault read -field=value $VAULT_ACCOUNT)
export GITHUB_TOKEN=$(vault read -field=github_token secret/kibana-issues/dev/kibanamachine)
export JENKINS_CI="true"
unset VAULT_ROLE_ID VAULT_SECRET_ID VAULT_ADDR VAULT_TOKEN VAULT_ACCOUNT
# Run EUI build/deploy script, set in the template parameter
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN, JENKINS_CI
./scripts/deploy/deploy_docs

0 comments on commit 3530035

Please sign in to comment.