add tag as parameter to back-end service
authorHasan Wan <hasan.wan@intel.com>
Thu, 22 Dec 2011 06:06:49 +0000 (14:06 +0800)
committerHasan Wan <hasan.wan@intel.com>
Thu, 22 Dec 2011 06:06:49 +0000 (14:06 +0800)
data/packaging.sh

index a4a14d5..e23cd3b 100644 (file)
@@ -201,7 +201,7 @@ get_srctar_md5sum()
     project=$2
     commitid=$3
     info_msg "Getting md5sum value for package $project at ref $tag, from server ..."
-    string=$(curl -L -k -s -i -u$user:$passwd -Fjson='{"parameter": [{"name": "version", "value": "'$version'"},{"name":"project", "value":"'$project'"},{"name":"parameters","value":"commitid='$commitid'"}]}' -FSubmit=Build "$HUDSON_SERVER/job/packaging/build")
+    string=$(curl -L -k -s -i -u$user:$passwd -Fjson='{"parameter": [{"name": "version", "value": "'$version'"},{"name":"project", "value":"'$project'"},{"name":"parameters","value":"commitid='$commitid';tag='$tag'"}]}' -FSubmit=Build "$HUDSON_SERVER/job/packaging/build")
     sleep 2
 
     echo $string|grep '302' > /dev/null