Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins keep rebuilding when type "Comment phrase to trigger build" on Bitbucket #209

Open
cpwujoewu opened this issue Aug 7, 2019 · 8 comments

Comments

@cpwujoewu
Copy link

I want to trigger a rebuild when I update a PR. But when I type "test this please" under a Bitbucket PR, jenkins keep rebuilding this PR whether this PR is success or not.

Not until I delete the "test this please" message on Bitbucket, jenkins stop the test.

@CodeMonk
Copy link
Collaborator

CodeMonk commented Aug 7, 2019 via email

@cpwujoewu
Copy link
Author

hi, the log on http://my-jenkins-server-ip:8080/log/all shows no error and no fail messages.

log snippet as follow, bb3c4235d8a2 is the commit num, and the jenkins just keep building the same commit not until I delete the "test" comment under the PR:
Build filter by phrase: r:^(develop)$ Aug 14, 2019 2:02:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 14, 2019 2:02:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@2bb1e06f Aug 14, 2019 2:02:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop)$ Aug 14, 2019 2:02:25 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 14, 2019 2:02:25 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 14, 2019 2:02:26 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit bb3c4235d8a2#0821f38f1076bd0170328f4d4a5357ff has already been processed Aug 14, 2019 2:02:27 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 14, 2019 2:02:27 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Rebuild comment available for commit bb3c4235d8a2 and comment #113,033,000 Aug 14, 2019 2:02:27 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Update build tag for 0821f38f1076bd0170328f4d4a5357ff build key Aug 14, 2019 2:02:27 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getAvailableBuildTagsFromTTPComment Parse TTP build flag Aug 14, 2019 2:02:27 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 14, 2019 2:02:27 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 14, 2019 2:02:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Post comment: TTP build flag ```[bid: #3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0]``` with original content null Aug 14, 2019 2:02:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? true [rebuild:true processed:true] Aug 14, 2019 2:02:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository setBuildStatus setBuildStatus INPROGRESS for commit: bb3c4235d8a2 with url http://140.96.83.87:8080/ Aug 14, 2019 2:02:29 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient setBuildStatus POST state INPROGRESS to https://bitbucket.org/api/2.0/repositories/kuanyusbitbucket/crawler_collections-ky/commit/bb3c4235d8a2/statuses/build with key 3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0 with response {"key": "3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0", "description": "", "repository": {"links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/kuanyusbitbucket/crawler_collections-ky"}, "html": {"href": "https://bitbucket.org/kuanyusbitbucket/crawler_collections-ky"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B0a9025a9-6c79-4c9d-9f04-0d994825b554%7D?ts=python"}}, "type": "repository", "name": "crawler_collections-ky", "full_name": "kuanyusbitbucket/crawler_collections-ky", "uuid": "{0a9025a9-6c79-4c9d-9f04-0d994825b554}"}, "url": "http://140.96.83.87:8080/", "links": {"commit": {"href": "https://bitbucket.org/!api/2.0/repositories/kuanyusbitbucket/crawler_collections-ky/commit/bb3c4235d8a210bb717d583ee78903825305dc97"}, "self": {"href": "https://bitbucket.org/!api/2.0/repositories/kuanyusbitbucket/crawler_collections-ky/commit/bb3c4235d8a210bb717d583ee78903825305dc97/statuses/build/3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0"}}, "refname": null, "state": "INPROGRESS", "created_on": "2019-08-14T02:48:26.681766+00:00", "commit": {"hash": "bb3c4235d8a210bb717d583ee78903825305dc97", "type": "commit", "links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/kuanyusbitbucket/crawler_collections-ky/commit/bb3c4235d8a210bb717d583ee78903825305dc97"}, "html": {"href": "https://bitbucket.org/kuanyusbitbucket/crawler_collections-ky/commits/bb3c4235d8a210bb717d583ee78903825305dc97"}}}, "updated_on": "2019-08-14T06:02:29.328569+00:00", "type": "build", "name": "Jenkins"}

@CodeMonk
Copy link
Collaborator

Would you mind pasting the logs for two consecutive builds? I only see setBuildStatus being called once.

@cpwujoewu
Copy link
Author

hi, follow are two consecutive builds logs
commit id is 2ecb0aca4a68

OnlyDestFlag using filter: ^(develop)$ Aug 15, 2019 2:30:49 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:30:49 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:30:49 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:49 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:30:51 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:30:51 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop)$ Aug 15, 2019 2:30:51 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:30:51 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@70a7da66 Aug 15, 2019 2:30:51 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop)$ Aug 15, 2019 2:30:51 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:51 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:30:52 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 2ecb0aca4a68#0821f38f1076bd0170328f4d4a5357ff has already been processed Aug 15, 2019 2:30:53 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:30:53 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Rebuild comment available for commit 2ecb0aca4a68 and comment #113,203,054 Aug 15, 2019 2:30:53 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Update build tag for 0821f38f1076bd0170328f4d4a5357ff build key Aug 15, 2019 2:30:53 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getAvailableBuildTagsFromTTPComment Parse TTP build flag Aug 15, 2019 2:30:53 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:53 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Post comment: TTP build flag ```[bid: #3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0]``` with original content null Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? true [rebuild:true processed:true] Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository setBuildStatus setBuildStatus INPROGRESS for commit: 2ecb0aca4a68 with url http://140.96.83.87:8080/ Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient setBuildStatus POST state INPROGRESS to https://bitbucket.org/api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a68/statuses/build with key 3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0 with response {"key": "3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0", "description": "", "repository": {"links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu"}, "html": {"href": "https://bitbucket.org/cpwujoewu/crawler_collections-cpwu"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7Bd44e5f5e-f232-4e8a-9bc0-e0f82d630907%7D?ts=python"}}, "type": "repository", "name": "crawler_collections-cpwu", "full_name": "cpwujoewu/crawler_collections-cpwu", "uuid": "{d44e5f5e-f232-4e8a-9bc0-e0f82d630907}"}, "url": "http://140.96.83.87:8080/", "links": {"commit": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}, "self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66/statuses/build/3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0"}}, "refname": null, "state": "INPROGRESS", "created_on": "2019-08-15T05:50:56.695779+00:00", "commit": {"hash": "2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66", "type": "commit", "links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}, "html": {"href": "https://bitbucket.org/cpwujoewu/crawler_collections-cpwu/commits/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}}}, "updated_on": "2019-08-15T06:30:54.797688+00:00", "type": "build", "name": "Jenkins"} Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:30:54 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:30:55 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildListener onStarted BitbucketBuildListener onStarted called. Aug 15, 2019 2:30:55 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:55 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:30:57 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:57 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:30:59 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:30:59 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:01 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:01 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:01 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:01 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@705fe12b Aug 15, 2019 2:31:01 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:01 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:01 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:02 PM INFO hudson.plugins.git.GitSCM guessBrowser Multiple browser guess matches for [org.eclipse.jgit.transport.RemoteConfig@4e0c66d4, org.eclipse.jgit.transport.RemoteConfig@20041af2] Aug 15, 2019 2:31:02 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 9b10bf328afe#25d2bcead0445feb56c0a1975aae8330 has already been processed Aug 15, 2019 2:31:03 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:03 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@feb4272 Aug 15, 2019 2:31:03 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:05 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 32d705d505cd#25d2bcead0445feb56c0a1975aae8330 has already been processed Aug 15, 2019 2:31:05 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:05 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:07 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:07 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:07 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:07 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:07 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:07 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:09 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:09 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:09 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:09 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@2b9a851a Aug 15, 2019 2:31:09 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:09 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:09 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:11 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:11 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:11 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 9b10bf328afe#00c9d0d4311ba06eb17bff6e7c437789 has already been processed Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@7dbe7bbb Aug 15, 2019 2:31:12 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix-1|bugfix|master)$ Aug 15, 2019 2:31:13 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 32d705d505cd#00c9d0d4311ba06eb17bff6e7c437789 has already been processed Aug 15, 2019 2:31:13 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:13 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:15 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:15 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:15 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:15 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:15 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:15 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:16 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:31:16 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:31:16 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:31:16 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:16 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:17 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:17 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:17 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:17 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:19 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:19 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix|master)$ Aug 15, 2019 2:31:19 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:19 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@78a2a754 Aug 15, 2019 2:31:19 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix|master)$ Aug 15, 2019 2:31:19 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:19 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:20 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit a0409823efde#abc34c51d8d17d596b7ea862c3634bb1 has already been processed Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop|release|bugfix|master)$ Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@653d5500 Aug 15, 2019 2:31:21 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop|release|bugfix|master)$ Aug 15, 2019 2:31:21 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:21 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:22 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 48badd711ee9#abc34c51d8d17d596b7ea862c3634bb1 has already been processed Aug 15, 2019 2:31:23 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:23 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? false [rebuild:false processed:true] Aug 15, 2019 2:31:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run Build Skip. Aug 15, 2019 2:31:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder run Build Start. Aug 15, 2019 2:31:24 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getTargetPullRequests Fetch PullRequests. Aug 15, 2019 2:31:25 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter instanceByString Filter instance by filter string Aug 15, 2019 2:31:25 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Build filter by phrase: r:^(develop)$ Aug 15, 2019 2:31:25 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter buildFilter Using filter: OnlyDestFlag Aug 15, 2019 2:31:25 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildFilter approved Approve cause: bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketCause@493596d7 Aug 15, 2019 2:31:25 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.OnlyDestFlag apply OnlyDestFlag using filter: ^(develop)$ Aug 15, 2019 2:31:25 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:25 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:26 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Commit 2ecb0aca4a68#0821f38f1076bd0170328f4d4a5357ff has already been processed Aug 15, 2019 2:31:27 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:27 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository filterPullRequestComments Filter PullRequest Comments. Aug 15, 2019 2:31:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Rebuild comment available for commit 2ecb0aca4a68 and comment #113,203,054 Aug 15, 2019 2:31:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Update build tag for 0821f38f1076bd0170328f4d4a5357ff build key Aug 15, 2019 2:31:28 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository getAvailableBuildTagsFromTTPComment Parse TTP build flag Aug 15, 2019 2:31:29 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository postBuildTagInTTPComment Post comment: TTP build flag ```[bid: #3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0]``` with original content null Aug 15, 2019 2:31:29 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository isBuildTarget Build target? true [rebuild:true processed:true] Aug 15, 2019 2:31:29 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository setBuildStatus setBuildStatus INPROGRESS for commit: 2ecb0aca4a68 with url http://140.96.83.87:8080/ Aug 15, 2019 2:31:29 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:29 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms Aug 15, 2019 2:31:30 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient setBuildStatus POST state INPROGRESS to https://bitbucket.org/api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a68/statuses/build with key 3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0 with response {"key": "3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0", "description": "", "repository": {"links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu"}, "html": {"href": "https://bitbucket.org/cpwujoewu/crawler_collections-cpwu"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7Bd44e5f5e-f232-4e8a-9bc0-e0f82d630907%7D?ts=python"}}, "type": "repository", "name": "crawler_collections-cpwu", "full_name": "cpwujoewu/crawler_collections-cpwu", "uuid": "{d44e5f5e-f232-4e8a-9bc0-e0f82d630907}"}, "url": "http://140.96.83.87:8080/", "links": {"commit": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}, "self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66/statuses/build/3de02e25dcff6ab938ed7f3c24aa8c6f9f3fbec0"}}, "refname": null, "state": "INPROGRESS", "created_on": "2019-08-15T05:50:56.695779+00:00", "commit": {"hash": "2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66", "type": "commit", "links": {"self": {"href": "https://bitbucket.org/!api/2.0/repositories/cpwujoewu/crawler_collections-cpwu/commit/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}, "html": {"href": "https://bitbucket.org/cpwujoewu/crawler_collections-cpwu/commits/2ecb0aca4a683cc3a9efcb76e13abc1fc01cbf66"}}}, "updated_on": "2019-08-15T06:31:30.711613+00:00", "type": "build", "name": "Jenkins"} Aug 15, 2019 2:31:31 PM INFO hudson.model.AsyncPeriodicWork$1 run Started GerritMissedEventsPlaybackEnabledChecker Aug 15, 2019 2:31:31 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished GerritMissedEventsPlaybackEnabledChecker. 0 ms

@CodeMonk
Copy link
Collaborator

In your PR, do you have multiple TPP build flags?

I only see one build. But, it is a rebuild. Course I could have missed something with all logs on a single line. Could you, perchance, attach them with newlines so that they're actually readable? I'm still digging though.

@CodeMonk
Copy link
Collaborator

Attached logs after cleaning

logs.txt

@CodeMonk
Copy link
Collaborator

Ok, after looking at the logs, I do see the job being rebuilt. It first decides to start building on line 24 (isBuildTarget), after checking the TPP flag for built before, and looking for a comment.

So, it sees the comment, and does a build, then sets the TPP flag.

However, on line 140, it thinks that the comment is newer the the build flag. I'll start poking the code.

@CodeMonk
Copy link
Collaborator

Can you please attach the comments left by jenkins? It looks like when you request a rebuild, it is supposed to add a comment that marks the rebuild as complete.

Also, check the permissions for your bitbucket user that jenkins is using. Make sure that user can add and modify comments on PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants