Comments (16)
"trusted" is any user that in the GitHub org or in a team that repository is in.
However, I don't believe that the issue is the one you are experiencing.
Make sure that the below checkbox is checked in the webhook settings.
There are some cases where the webhook is not set up properly automatically.
from github-pr-comment-build-plugin.
Thanks for the reply. We don't use webhooks, we use a github app
In the app's config I have these things configured.
d9e268.jpg)
There is no "Issue comments" in the github app settings.
from github-pr-comment-build-plugin.
FWIW, I don't have this enabled, but I don't think it makes sense for it to be enabled. We don't use "Issues" - we use "Pull Requests" as I'm sure you know those are very different things.
from github-pr-comment-build-plugin.
Ah, GitHub is really confusing here. Issue comments are mislabeled, and are both for issue and PR comments.
So if you have them disabled, your PR comments won't trigger.
from github-pr-comment-build-plugin.
Okay. I added Issue comments, and reapproved the new permissions. Still no luck. No webhook comes in when I comment on the PR.
FWIW, I don't see Pull Request comments in this list of events. I see Pull Request Review Comments -- but that's not the same. We don't use Pull Request Reviews. We just comment directly on the PR.
from github-pr-comment-build-plugin.
from github-pr-comment-build-plugin.
That should work. The only other thing I can think of if the webhook security is not set up correctly. You'll have to sue GH and Jenkins tools to debug this I guess
from github-pr-comment-build-plugin.
But there's no evidence of it here, in jenkins:
my.jenkins.com/job/phonetrac/indexing/events
There's other webhook's there, like PR opened, PR updated -- and those trigger builds, but nothing about issue comments or PR comments/reviews.
So github it sending it, but jenkins is swallowing it up? Do they need to be specifically enabled somewhere in jenkins-land?
from github-pr-comment-build-plugin.
Sounds like security token config issue somewhere
from github-pr-comment-build-plugin.
Hmm, not sure I follow. github sent the data and it 200'd. So jenkins has it I'd think?
What does a security token have to do with anything here?
from github-pr-comment-build-plugin.
Then it sounds like it should work. Running out of ideas here. Are you entering the proper regex in the plugin config?
from github-pr-comment-build-plugin.
I copied/pasted, it's just rerun build
-- but I don't think that matters? The webhook isn't showing up in the jenkins event log
from github-pr-comment-build-plugin.
I added a new jenkins system log (/manage/log/debug/configure) looks like this:
It shows that the webhook was received and I see my pull request comment (and the literal comment message)
Here's a snippet (huge blob of json)
It does not show any logs from com.adobe.jenkins.github_pr_comment_build.IssueCommentGHEventSubscriber
- so, seems like this plugin is not properly detecting the webhook or it's not logging anything?
Shouldn't the plugin wake up and at least log something about a webhook?
Something like: "processing comment webhook ; didn't match anything"
from github-pr-comment-build-plugin.
I've encountered a similar situation in our repository, which uses GitHub groups to give access. Once I enable untrusted users, I can trigger builds with comments. Once I disable it, no luck - plugin says that my user is untrusted (despite being granted a repository admin permissions by being in a proper group).
from github-pr-comment-build-plugin.
I have Allow untrusted users to trigger the build
checked.
I think the issue now is the plugin isn't detecting the webhook at all. It says nothing.
from github-pr-comment-build-plugin.
try .*
in the comment regex field, so it catches any comment (just for testing)
from github-pr-comment-build-plugin.
Related Issues (20)
- Question - Github App Authentication - Does it work? HOT 2
- Job is triggered twice with this plugin HOT 3
- Better Support for Job DSL configuration of GitHub Organization Folder HOT 2
- The plugin is not triggered with a multibranch pipeline HOT 2
- This plugin triggers the build twice HOT 8
- not able to retrieve getCommentBody or getCommentURL from currentBuild.buildCauses HOT 11
- Unable to trigger build with wildcard in the comment body HOT 2
- Does the latest version support trigger building in multibranch pipeline project? HOT 3
- plugin doesn't trigger a build when a PR comment is issued HOT 2
- Restrict build trigger to project group members HOT 14
- Trigger more than one job with single PR comment HOT 1
- isAuthorized() throws an exception when it should return false
- Comment text as env-var to job HOT 1
- Please give some example pipeline code in the README
- Triggerring more than one job with single PR comment is broken HOT 6
- Thumbs up/down on successful/failed submission HOT 8
- Document the requirement for branch discovery behavior HOT 4
- For private repositories people with Read role can trigger builds HOT 1
- The plugin triggers builds for PRs with same number in different repositories HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pr-comment-build-plugin.