Jenkinsfile: Handle special case for release image type

The "release" image is the default image without any suffix. ie:
netmodule-linux-image. It needs a special handling because the name of
the image type ('release') does not match with the image suffix
(nothing).
This commit is contained in:
Alexandre Bard 2020-09-12 19:30:14 +02:00
parent 944ee54270
commit 9d5be70994
1 changed files with 4 additions and 0 deletions

4
Jenkinsfile vendored
View File

@ -97,6 +97,10 @@ def build_and_deploy() {
build(params.IMAGE_TYPE, params.IMAGE_TYPE, true)
deploy(params.IMAGE_TYPE, true)
}
else if (params.IMAGE_TYPE == 'release') {
build('ostree', '', false)
deploy('', false)
}
else {
build('ostree', params.IMAGE_TYPE, false)
deploy(params.IMAGE_TYPE, false)