diff --git a/jenkins.sh b/jenkins.sh
index 63d80ab355342ebc58af544c127f17be0b30cdc9..26e0088cd9bc77cf2a86b35adb7e89a8aa33f0dc 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -64,7 +64,7 @@ done
 if test $RUN_POSTGRES = ":$(($PORT_BASE + 1)):$(($PORT_BASE + 2))"; then
     echo >&2 "Running sytest with PostgreSQL";
     pip install psycopg2
-    ./run-tests.pl -O tap --synapse-directory .. --all > results.tap
+    ./run-tests.pl -O tap --synapse-directory .. --all --port-base $PORT_BASE > results.tap
 else
     echo >&2 "Skipping running sytest with PostgreSQL, $RUN_POSTGRES"
 fi