-
Notifications
You must be signed in to change notification settings - Fork 146
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
Comments
That sounds like a bug in dropping it's state onto bitbucket. Can you check
the log for errrors?
…On Tue, Aug 6, 2019 at 8:26 PM joewu ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#209?email_source=notifications&email_token=AAA72VUMMZ24XTEMNPYO2O3QDIXEPA5CNFSM4IJ3XPJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDYXLLQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA72VQWF77IPIJNQOLAWRLQDIXEPANCNFSM4IJ3XPJQ>
.
|
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: |
Would you mind pasting the logs for two consecutive builds? I only see setBuildStatus being called once. |
hi, follow are two consecutive builds logs
|
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. |
Attached logs after cleaning |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: