Use {GERRIT_PROJECT} when calling Gerrit in
release-merge job.
Change-Id: I0d62d5c713858e7e43b2fc6a6462813b01bea2f8
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Use {GERRIT_PROJECT} when calling Gerrit in release-merge job.
if [[ "$JOB_NAME" =~ "merge" ]]; then
echo "Running merge"
gerrit_ssh=$(echo "$GERRIT_URL" | awk -F"/" '{print $3}')
- git remote set-url origin ssh://"$RELEASE_USERNAME"@"$gerrit_ssh":29418/$PROJECT
+ git remote set-url origin ssh://"$RELEASE_USERNAME"@"$gerrit_ssh":29418/$GERRIT_PROJECT
git config user.name "$RELEASE_USERNAME"
git config user.email "$RELEASE_EMAIL"
echo -e "Host $gerrit_ssh\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config