From: Zhang Qiang Date: Wed, 5 Mar 2014 06:03:37 +0000 (+0800) Subject: Skip image creation if No KS files generated or found X-Git-Tag: 0.21~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=115ab8643bcf026eefc93bab2de708e1f0b73f23;p=tools%2Fgbs.git Skip image creation if No KS files generated or found Change-Id: Ice3d6bd4b988c8153cd5f797ef7760ab99da90f2 --- diff --git a/jenkins-jobs/scripts/common_functions b/jenkins-jobs/scripts/common_functions index a68a721..2f5d29c 100755 --- a/jenkins-jobs/scripts/common_functions +++ b/jenkins-jobs/scripts/common_functions @@ -73,6 +73,11 @@ function update_ks_file(){ #Create images function create_images() { + if [ -z "$KS_FILES" ]; then + echo "No KS files found, skip image creation " + return + fi + update_ks_file for ks in $KS_FILES