Checking REMOTE_REPOS parameter
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 11 Mar 2014 07:46:34 +0000 (15:46 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Tue, 11 Mar 2014 08:01:57 +0000 (16:01 +0800)
REMOTE_REPOS parameter must be specified for job_build_package_list job.

Change-Id: I5e8e89be531599ab3da27acb6a064f48970b7a98
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
jenkins-jobs/scripts/common_functions
jenkins-jobs/scripts/job_build_packagelist

index 003df40..b026311 100755 (executable)
@@ -109,6 +109,3 @@ function publish_artifacts()
         echo "No build report generated"
     fi
 }
-
-
-
index d4bf44a..fffee3b 100755 (executable)
@@ -69,6 +69,12 @@ EOF
 
 #MAIN START
 
+# Parameters Checking
+if [ -z $REMOTE_REPOS ];then
+    echo "REMOTE_REPOS parameter must be specified for this job"
+    exit 1
+fi
+
 prepare_build_env
 
 BUILD_ID=$(basename $(echo $REMOTE_REPOS|awk '{print $1}'))