Jenkinsfile: Add back workaround for license error

This time it is a bit smarter and trigger the licenses deploiement only
when it is really missing. This should avoid too long build time.

BugzID: 69247
This commit is contained in:
Alexandre Bard 2020-12-16 13:51:19 +01:00
parent 975901eebe
commit fbb569de68
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -182,6 +182,9 @@ def build(env_in, image_type_in, single_fitImage) {
if (single_fitImage) {
sh "bash -c '. ./env.image${env} && bitbake -k virtual/netmodule-image'"
} else {
/* The following workaround can be removed once the explanation for the missing lic has been found */
if (! fileExists("build/tmp/deploy/licenses/ostree-kernel-initramfs"))
sh "bash -c '. ./env.image${env} && bitbake -fc populate_lic ostree-kernel-initramfs'"
sh "bash -c '. ./env.image${env} && bitbake -k netmodule-linux-image${image_type}'"
}
}