Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobs/test-override: respect env vars for stream #72

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jobs/test-override.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def cosa_img = params.COREOS_ASSEMBLER_IMAGE
cosa_img = cosa_img ?: pipeutils.get_cosa_img(pipecfg, params.STREAM)
def stream_info = pipecfg.streams[params.STREAM]

// Grab any environment variables we should set
def container_env = pipeutils.get_env_vars_for_stream(pipecfg, params.STREAM)

// Keep in sync with build.Jenkinsfile
def cosa_memory_request_mb = 10.5 * 1024 as Integer
def ncpus = ((cosa_memory_request_mb - 512) / 1536) as Integer
Expand All @@ -77,6 +80,7 @@ currentBuild.description = "[${descPrefix}] Pending"

cosaPod(image: cosa_img,
cpu: "${ncpus}", memory: "${cosa_memory_request_mb}Mi",
env: container_env,
serviceAccount: "jenkins") {
timeout(time: 150, unit: 'MINUTES') {
try {
Expand Down