Code Monkey home page Code Monkey logo

Comments (16)

lprimak avatar lprimak commented on July 1, 2024

"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.

Screen Shot 2023-02-16 at 11 31 36 AM

from github-pr-comment-build-plugin.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

Thanks for the reply. We don't use webhooks, we use a github app

In the app's config I have these things configured.
GitHub_Apps_-_JenkinsCTM
GitHub_Apps_-_JenkinsCTM
d9e268.jpg)
GitHub_Apps_-_JenkinsCTM

There is no "Issue comments" in the github app settings.

from github-pr-comment-build-plugin.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

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.

GitHub_Apps_-_JenkinsCTM

from github-pr-comment-build-plugin.

lprimak avatar lprimak commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

GitHub_Apps_-_JenkinsCTM

from github-pr-comment-build-plugin.

lprimak avatar lprimak commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

Okay, so I commented on a PR:
remove_active_resource_by_jsharpe-ctm_·Pull_Request__2712·_calltracking_phonetrac

It webhooked:
GitHub_Apps_-_JenkinsCTM
GitHub_Apps_-_JenkinsCTM

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.

lprimak avatar lprimak commented on July 1, 2024

Sounds like security token config issue somewhere

from github-pr-comment-build-plugin.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

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.

lprimak avatar lprimak commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

I added a new jenkins system log (/manage/log/debug/configure) looks like this:

Configure_log_recorder__Jenkins_

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)

Log__Jenkins_

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.

iwane-pl avatar iwane-pl commented on July 1, 2024

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.

jsharpe-ctm avatar jsharpe-ctm commented on July 1, 2024

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.

lprimak avatar lprimak commented on July 1, 2024

try .* in the comment regex field, so it catches any comment (just for testing)

from github-pr-comment-build-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.