From fbb569de6875493715e3a64226c68fd4458731ee Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 16 Dec 2020 13:51:19 +0100 Subject: [PATCH] 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 --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e9a5fd8..ee9203e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}'" } }