That approach works only for metapackages, if a repo contains a single package the script will name it always as upstream. Can be fixed by either cloning the repo to a folder named as the remote repo or by using the catkin_pkg to discover packages (adding one more ROS dependency to Jenkins master).
Example: pandora_fsm