Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 25 00:31

    dependabot[bot] on maven

    (compare)

  • May 25 00:31
    dependabot[bot] closed #269
  • May 25 00:31
    dependabot[bot] commented #269
  • May 25 00:31
    dependabot[bot] labeled #277
  • May 25 00:31
    dependabot[bot] labeled #277
  • May 25 00:31
    dependabot[bot] review_requested #277
  • May 25 00:31
    dependabot[bot] opened #277
  • May 25 00:31

    dependabot[bot] on maven

    Bump github-branch-source from … (compare)

  • May 23 00:13

    dependabot[bot] on maven

    (compare)

  • May 23 00:13
    dependabot[bot] closed #260
  • May 23 00:13
    dependabot[bot] commented #260
  • May 23 00:13
    dependabot[bot] labeled #276
  • May 23 00:13
    dependabot[bot] labeled #276
  • May 23 00:13
    dependabot[bot] opened #276
  • May 23 00:13
    dependabot[bot] review_requested #276
  • May 23 00:13

    dependabot[bot] on maven

    Bump plugin-util-api from 2.9.0… (compare)

  • May 20 23:02
    dependabot[bot] labeled #168
  • May 20 23:02
    dependabot[bot] labeled #168
  • May 20 23:02
    dependabot[bot] opened #168
  • May 20 23:02

    dependabot[bot] on maven

    Bump plugin-util-api from 2.16.… (compare)

Evan Zelkowitz
@ezelkow1
Are there any docs for how to use the github checks api within a pipeline script? We had switched our project the newer github integration plugin but its just missing too much, so I was working on going back to pull request builder, but its missing the ability to set individual statuses, which is where this project comes in :)
unless that works already with jenkinsci/checks-api-plugin#7 ?
Evan Zelkowitz
@ezelkow1
i tried using ^, but end up with a no suitable checks publisher even though i have the github api checks installed, didnt know if instead I need to create a ghcheckspub and somehow feed this to it?
Tim Jacomb
@timja
if you get no suitable checks publisher probably means you haven't installed the github-checks plugin
Evan Zelkowitz
@ezelkow1
but I do have it installed, just checked in our plugins list
Evan Zelkowitz
@ezelkow1
im wondering if its because of the way we have our hierarchy setup. We use github pull request builder to kick off a single toplevel job, which then will either run all of our subsequent jobs by name or specific ones via regex from a comment. Im trying to update those statuses as they come back from those builds since thats how we had it setup with the github integration plugin, it could use the github url and creds from the system fine
but because that toplevel doesnt actually do anything with git, the single lower jobs are the ones doing checkouts and git things, that toplevel one may have no concept of github that github-checks can use
Tim Jacomb
@timja
make sure you check out with a github app, might help, but this scenario isn't well supported.
it focused originally on multibranch pipelines and organisation folder pipelines
Mostafa Wael
@Mostafa-wael
@XiongKezhi, the plugin is really cool and seems handy. I am trying to use it with my private repo but it doesn't seem to work. Is there any example or demo project to start with?
Ulli Hafner
@uhafner:matrix.org
[m]
All our jobs in ci.jenkins.io use it. What exactly is not working? Did you correctly register the GitHub app?
Mostafa Wael
@Mostafa-wael
I am working on a private repo of mine, not on an organization. Github app only works for organizations isn't it?
Tim Jacomb
@timja
nope works also for personal accounts
Mostafa Wael
@Mostafa-wael
Is there any demo or example?
Ulli Hafner
@uhafner:matrix.org
[m]
As already mentioned, all of our public CI jobs use it. Can you make more clear what is actually happening when you say "does not work"? Did you follow all steps in Tims guide: https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/github-app.adoc?
Mostafa Wael
@Mostafa-wael
I missed a step in the instructions. Everything works fine now. Sorry for the inconvenience.
Austin Cormier
@acormier1
Hey guys. We're utilizing this plugin in concert with the generic-webhooks-trigger plugin. After the Jenkins job is invoked via a webhook, the plugin is successfully sending the checks to github using the github-app credentials. However we are having difficulties understand how the "re-run" check integrates. Does the app have to be configured to hit the /github-webhook/ URI? What requirements are there in the pipeline job configuration for this to work?
Austin Cormier
@acormier1
All set with the above. Looks like the app does need to hit the /github-webook/ URI.
sai
@sai5714
Hello Guys, i'm trying to implement github checks api through jenkinsfile, can anyone please guide me on the setup or provide an example
and also can we publish HTML reports from jenkins throgh github checks api?
Ulli Hafner
@uhafner:matrix.org
[m]
GitHub does only support markdown. You will find some examples in the Readme of the project.
sai
@sai5714
could you please share the link to the example
thank you
can anyone please share an example to setup the checks in jenkinsfile
Ulli Hafner
@uhafner:matrix.org
[m]
ZbigniewRA
@ZbigniewRA
Just like @sai5714 I have a problem getting this to run.
The Readme of the project shows something, but that alone is not enough to make it work.
From what I was able to figure out you need to install "Checks API" plugin and "GitHub Checks" plugin.
But how to configure them to actually send requests to GitHub? I have no clue, and the documentation does not mention that.
The only thing I get so far is "[Checks API] No suitable checks publisher found.".
I've read somewhere that you need to add an Application to GitHub, but with what permissions and how to set it up in Jenkins is unclear for me.
Any help would be appreciated.
ZbigniewRA
@ZbigniewRA
Note: I was able to make it work when using the Multibranch project with GitHub as branch source. But not in a normal project.
2 replies
Valentin Silvestre
@vasilvestre
Hello ! Anyone here ? D:
I have a warning about [Checks API] No suitable checks publisher found. and I can't find a way to publish my results
Tim Jacomb
@timja
install a checks publisher such as 'github-checks-api'
you also need to configure a github app
Valentin Silvestre
@vasilvestre
Oh
It's not shipped in...
Right ^^ Thanks you !
I think github app is configured but I will check it
Valentin Silvestre
@vasilvestre

I now have this error :
[GitHub Checks] Failed Publishing GitHub checks: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/Stores-Discount/stores-discount-payment-funnel/check-runs {"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/reference/checks#create-a-check-run"}

Despite a lot of permissions being given. Is there a place to find precise permissions to give ?

Valentin Silvestre
@vasilvestre
After updating permissions, you need to review it in installed apps
It's now working ! Thanks a lot for the help @timja :)
Valentin Silvestre
@vasilvestre
Hm... the details view is empty at success
image.png
This
Valentin Silvestre
@vasilvestre
Seems like it's the normal behaviour. I'm ok with it
Tim Jacomb
@timja
yeah it will only include details if there's failures
Ulli Hafner
@uhafner:matrix.org
[m]
5 replies
Ulli Hafner
@uhafner:matrix.org
[m]
Yes I updated my settings already. But that does work only for someone who is logged in. I think by default we should not show blue ocean anymore (in our CI).
Shoud I create a ticket for our INFRA team? Or is this a won't fix because we still love Blue Ocean?
Ulli Hafner
@uhafner:matrix.org
[m]
Jordan Gibson
@gib37:matrix.org
[m]
Hi folks - just wondering if it's possible to use a github user to publish github statuses? I understand it's not recommended or best practice, but it's just to resolve a temporary permissions issue in our organization. Thanks.
Tim Jacomb
@timja
you can only use a user for commit status, checks api requires an app