Builds not being triggered

I've got a TeamCity server set up, using the GitHub connections and webhook plugin to have automatically triggered builds for pull requests, etc. Here's my configuration:


This seems similar to https://youtrack.jetbrains.com/issue/TW-44865#tab=Comments, but I don't have multiple VCS roots, just the one. However, the builds are not being triggered. In my `teamcity-vcs.log`, I see the following:

[2017-06-19 03:02:23,479] INFO [io-8111-exec-46] - mitHooks.GitHubWebHookListener - Received push payload from webhook for repo bojanrajkovic/pingu
[2017-06-19 03:02:23,481] INFO [ changes pool 1] - jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances start: 0 msec
[2017-06-19 03:02:23,481] INFO [ changes pool 1] - jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances stopped: 0 msec
[2017-06-19 03:02:53,098] INFO [uled executor 5] - Hooks.WebhookPeriodicalChecker - Periodical GitHub Webhooks checker started
[2017-06-19 03:02:53,444] INFO [uled executor 5] - Hooks.WebhookPeriodicalChecker - Periodical GitHub Webhooks checker finished
[2017-06-19 03:04:26,366] INFO [io-8111-exec-28] - mitHooks.GitHubWebHookListener - Received pull_request payload from webhook for repo bojanrajkovic/pingu
[2017-06-19 03:04:26,373] INFO [ changes pool 1] - jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances start: 0 msec
[2017-06-19 03:04:26,373] INFO [ changes pool 1] - jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances stopped: 0 msec

 

I've waited almost 20 minutes since that pull request payload was received, and there still has not been a build. It appears that it's waiting for the scheduled checkin rather than actually building when the GitHub webhook receives a notification. Is there a way I can lower the changes checking interval to force builds?

 

1
2 comments

Update: I got the pull request build to trigger by triggering a random build of "latest changes at the time of the build." What am I missing here?

1

Once I merged the pull request, those builds *also* started immediately:

 

[2017-06-19 03:40:21,451]   INFO [io-8111-exec-42] - mitHooks.GitHubWebHookListener - Ignoring 'pull_request' event with action 'closed as unrelated 
[2017-06-19 03:40:21,889]   INFO [io-8111-exec-28] - mitHooks.GitHubWebHookListener - Received push payload from webhook for repo bojanrajkovic/pingu 
[2017-06-19 03:40:21,892]   INFO [ changes pool 1] -      jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances start: 0 msec 
[2017-06-19 03:40:21,893]   INFO [ changes pool 1] -      jetbrains.buildServer.VCS - Scheduling checking for changes for 2 VCS root instances stopped: 0 msec 
[2017-06-19 03:40:21,996]   INFO [ical executor 1] -      jetbrains.buildServer.VCS - Collecting changes for VCS root "Pingu GitHub" {instance id=5, parent internal id=1, parent id=Pingu_GitHub, description: "https://github.com/bojanrajkovic/pingu#refs/heads/master"} from state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 95e1fdc353819549f6d6558d8d111e6108f536e0, refs/pull/15/merge: 8d90ab55dc6528552a3b136121919aa7c2cdf483}} to state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 29ae67d2453738336ecb632a42d7b53c90d17765, refs/pull/15/merge: null}} 
[2017-06-19 03:40:22,002]   INFO [ical executor 4] -      jetbrains.buildServer.VCS - Collecting changes for VCS root "Pingu GitHub (Linux)" {instance id=15, parent internal id=5, parent id=Pingu_PinguGitHubLinux, description: "https://github.com/bojanrajkovic/pingu#refs/heads/master"} from state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 95e1fdc353819549f6d6558d8d111e6108f536e0, refs/pull/15/merge: 8d90ab55dc6528552a3b136121919aa7c2cdf483}} to state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 29ae67d2453738336ecb632a42d7b53c90d17765, refs/pull/15/merge: null}}

Update: A subsequent new pull request *also* does not build. I see a collecting changes phase that *should* pick it up (refs/pull/16/head), but does not: 

[2017-06-19 03:50:57,133]   INFO [ical executor 4] -      jetbrains.buildServer.VCS - Finish collecting changes successfully for VCS root "Pingu GitHub" {instance id=5, parent internal id=1, parent id=Pingu_GitHub, description: "https://github.com/bojanrajkovic/pingu#refs/heads/master"} from state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 29ae67d2453738336ecb632a42d7b53c90d17765, refs/pull/16/head: null, and 5 more unchanged branches}} to state RepositoryState{defaultBranch='refs/heads/master', revisions={refs/heads/master: 29ae67d2453738336ecb632a42d7b53c90d17765, refs/pull/16/head: 419fb7da42733e692c8a3b5f4269e9f34675b87a, and 6 more unchanged branches}}; 0 changes collected 0 changes persisted, total time: 5s,534ms, persisting time: < 1ms 

Update 2: If I disable the VCS trigger, I see pending commits, but I never get builds. It seems like the interaction between the implementation of https://youtrack.jetbrains.com/issue/TW-45164#tab=Comments and commit hooks is badly broken.

0

Please sign in to leave a comment.