Skip to content

Commit

Permalink
Jenkinsfile.kola.aws: allow overriding cosa image
Browse files Browse the repository at this point in the history
This is useful for testing changes to kola.
  • Loading branch information
jlebon committed Apr 9, 2020
1 parent 54a894b commit f4de844
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile.kola.aws
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ properties([
string(name: 'S3_STREAM_DIR',
description: 'Fedora CoreOS S3 Stream Directory',
defaultValue: '',
trim: true),
string(name: 'COREOS_ASSEMBLER_IMAGE',
description: 'Override coreos-assembler image to use',
defaultValue: "coreos-assembler:master",
trim: true)
])
])

currentBuild.description = "[${params.STREAM}] - ${params.VERSION}"

// substitute the right COSA image into the pod definition before spawning it
pod = pod.replace("COREOS_ASSEMBLER_IMAGE", "coreos-assembler:master")
pod = pod.replace("COREOS_ASSEMBLER_IMAGE", params.COREOS_ASSEMBLER_IMAGE)

// shouldn't need more than 256Mi for this job
pod = pod.replace("COREOS_ASSEMBLER_MEMORY_REQUEST", "256Mi")
Expand Down

0 comments on commit f4de844

Please sign in to comment.