jenkins mmc: fixed release-image builds
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
d33d96c505
commit
87e59c35ed
|
|
@ -167,6 +167,7 @@ def cleanLeftOvers(cleaningDir) {
|
|||
def build(imgType) {
|
||||
sshagent (credentials: [env.SSH_ID]) {
|
||||
def tgtImgType = "${imgType}" == "bootloader" ? "dev" : "${imgType}"
|
||||
tgtImgType = "${tgtImgType}" == "release" ? "" : "${tgtImgType}"
|
||||
def imgTypePostfix = "${tgtImgType}" == "" ? "" : "-${tgtImgType}"
|
||||
sh "bash -c '. ./env.image-ostree > /dev/null && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
|
||||
}
|
||||
|
|
@ -195,6 +196,7 @@ def createImagePackage(imgType, outputDir) {
|
|||
dir (outputDir) {
|
||||
println "get image artifacts for package..."
|
||||
def imgTypePostfix = "${imgType}" == "" ? "" : "-${imgType}"
|
||||
imgTypePostfix = "${imgTypePostfix}" == "-release" ? "" : "${imgTypePostfix}"
|
||||
def image_basename = "netmodule-linux-image${imgTypePostfix}-${params.MACHINE}"
|
||||
def basename_built = "${env.YOCTO_DEPLOYS}/${image_basename}"
|
||||
def basename_archive = "./image${imgTypePostfix}-${params.MACHINE}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue