Fix release-job.sh 26/16426/1 v0.40.1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 2 Aug 2019 23:04:08 +0000 (16:04 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 2 Aug 2019 23:04:08 +0000 (16:04 -0700)
Use {GERRIT_PROJECT} when calling Gerrit in
release-merge job.

Change-Id: I0d62d5c713858e7e43b2fc6a6462813b01bea2f8
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
releasenotes/notes/fix-release-merge-project-var-f0813d92a42db8b1.yaml [new file with mode: 0644]
shell/release-job.sh

diff --git a/releasenotes/notes/fix-release-merge-project-var-f0813d92a42db8b1.yaml b/releasenotes/notes/fix-release-merge-project-var-f0813d92a42db8b1.yaml
new file mode 100644 (file)
index 0000000..553d61e
--- /dev/null
@@ -0,0 +1,4 @@
+---
+fixes:
+  - |
+    Use {GERRIT_PROJECT} when calling Gerrit in release-merge job.
index 68f35db..a0e6b44 100644 (file)
@@ -124,7 +124,7 @@ git tag -v "$VERSION"
 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