CP-4816: More changes to the bumpBuildNumber script to try and make it work with git

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2013-06-24 16:14:50 +01:00
parent 444c0a4b1a
commit 9b46617bff

View File

@ -49,7 +49,7 @@ fi
ssh_key="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/id_dsa"
PSQL="ssh -i ${ssh_key} -q xenbuild@xenbuilder.uk.xensource.com PGPASSWORD=xenadmindb psql -q -A -t xenbuilder xenadmin"
PSQL="ssh -i ${ssh_key} -v xenbuild@xenbuilder.uk.xensource.com PGPASSWORD=xenadmindb psql -q -A -t xenbuilder xenadmin"
QUERY="""INSERT INTO xenadmin_builds (build_number,job,revision) SELECT ${get_BUILD_NUMBER},'${get_JOB_NAME}','${get_GIT_REVISION}' WHERE NOT EXISTS ( SELECT 1 FROM xenadmin_builds WHERE build_number = ${get_BUILD_NUMBER});
UPDATE xenadmin_builds SET job='${get_JOB_NAME}',revision='${get_GIT_REVISION}' WHERE build_number=${get_BUILD_NUMBER};