Skip to content

Commit

Permalink
A single kokoro build config for ops agent tests (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Subbarker committed Jan 9, 2024
1 parent 1725694 commit 0aa5e32
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions kokoro/config/test/ops_agent/release.gcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'common.gcl' as common
import '../image_lists.gcl' as image_lists

_parse_distro = lambda tag: {
parts = split(tag, '/')
ret = {
distro = parts[3]
arch = parts[4]
}
}.ret

config build = common.ops_agent_test {
params {
local _distro_arch = _parse_distro(params.environment._LOUHI_TAG_NAME)
platforms = image_lists.get(_distro_arch.distro + '_' + _distro_arch.arch, 'invalid_distro').release
arch = _distro_arch.arch

environment {
// The release builds run as a different service account.
TRANSFERS_BUCKET = 'stackdriver-test-143416-file-transfers'
SERVICE_EMAIL =
'build-and-test@stackdriver-test-143416.iam.gserviceaccount.com'
}
}
}

0 comments on commit 0aa5e32

Please sign in to comment.