Skip to content

Commit

Permalink
[ci] skip building ts refs when not necessary (#95739)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <[email protected]>
  • Loading branch information
Spencer and spalger authored Mar 30, 2021
1 parent edbb989 commit e46a74f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ci/Jenkinsfile_baseline_capture
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ kibanaPipeline(timeoutMinutes: 210) {
) {
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') {
withEnv([
'BUILD_TS_REFS_DISABLE=false', // disabled in root config so we need to override that here
'BUILD_TS_REFS_CACHE_ENABLE=true',
'BUILD_TS_REFS_CACHE_CAPTURE=true',
'DISABLE_BOOTSTRAP_VALIDATION=true',
Expand Down
3 changes: 3 additions & 0 deletions test/scripts/checks/type_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

source src/dev/ci_setup/setup_env.sh

checks-reporter-with-killswitch "Build TS Refs" \
node scripts/build_ts_refs --ignore-type-failures --force

checks-reporter-with-killswitch "Check Types" \
node scripts/type_check
1 change: 1 addition & 0 deletions vars/workers.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def base(Map params, Closure closure) {
"TEST_BROWSER_HEADLESS=1",
"GIT_BRANCH=${checkoutInfo.branch}",
"TMPDIR=${env.WORKSPACE}/tmp", // For Chrome and anything else that respects it
"BUILD_TS_REFS_DISABLE=true", // no need to build ts refs in bootstrap
]) {
withCredentials([
string(credentialsId: 'vault-addr', variable: 'VAULT_ADDR'),
Expand Down

0 comments on commit e46a74f

Please sign in to comment.