Get pull request info on trigger with multiple VCS roots
Get pull request info on trigger with multiple VCS roots I have a TeamCity (version 2017.2.4) project with multiple configurations which are attached to various GitHub repositories. Now I would like to setup SonarQube GitHub plugin for some of these configurations. To do so, I've created a new build and attached a VCS Trigger . In order to make this trigger work, I also attached all VCS roots which I'd like this build to run on. Now after any changes in these VCS roots, the build gets triggered. VCS Trigger In order to use this plugin, after each trigger I need to extract repository name which was affected and fetch the pull request id. This is easy to do if I have a single VCS root with the following script: #!/usr/bin/env bash # Exit script on any command failure. set -e # Pass parameter to next TeamCity build step. param() { echo "##teamcity[setParameter name='$1' value='$2']" } # Full GitHub repository name. repository="myOrg/$(echo '%...
