Coder Social home page Coder Social logo

Comments (13)

timja avatar timja commented on July 1, 2024 1

It's what is known as a Job behaviour or trait.

It's done at job level configuration (or organisation / multi branch folder level)

from checks-api-plugin.

timja avatar timja commented on July 1, 2024

I thought about this when it was added, makes sense to add configuration hooks for it.

There shouldn't be any sensitive info in the build logs, but it can happen...

from checks-api-plugin.

mrginglymus avatar mrginglymus commented on July 1, 2024

Ahh, I think I've grokked your second point. I'd think there's not much value (currently) in allowing users to disable the pipeline summary altogether; at that point you're left with a check that just has a link to the job, at which point you may be better off suppressing the checks for job status altogether and just using the status API (whilst still retaining the ability to use checks api for e.g. junit, warnings-ng etc).

from checks-api-plugin.

dduportal avatar dduportal commented on July 1, 2024

Thanks a lot for this! I still have a (newbie) question though: how can I use the flag to suppress Log (from #93)?

I'm not sure to understand if it is a property to set on my Jenkins administration settings, on the jobs (GH Org. Folder in my case) or on the Pipeline itself? I'm asking the question because I never, ever did anything to enable or specify the Checks (except switching from a Github Oauth to Github App). It's really really cool to have this enabled by default!

But I'm not sure where to go once the new released plugin will be installed on my instance.

(I volunteer to write something on the plugin, or Jenkins doc to show the case of course, but I need initial pointers).

from checks-api-plugin.

jglick avatar jglick commented on July 1, 2024

https://github.com/jenkinsci/github-checks-plugin/blob/65a3ebf0923ebb3993414103d5269c2f536ffa0c/src/main/java/io/jenkins/plugins/checks/github/status/GitHubSCMSourceStatusChecksTrait.java#L121 IIUC.

from checks-api-plugin.

timja avatar timja commented on July 1, 2024

Yes that's right

from checks-api-plugin.

dduportal avatar dduportal commented on July 1, 2024

It's what is known as a Job behaviour or trait.
It's done at job level configuration (or organisation / multi branch folder level)

Ok, so I'll have to update my job through UI, or my Job-DSL config (with the new version installed of course). Is that correct?

https://github.com/jenkinsci/github-checks-plugin/blob/65a3ebf0923ebb3993414103d5269c2f536ffa0c/src/main/java/io/jenkins/plugins/checks/github/status/GitHubSCMSourceStatusChecksTrait.java#L121 IIUC.

Is this related to my question or to the PR? I'm not sure to understand (more than it's some code from the plugin github-checks-plugin that might be related to the current plugin, but I don't have the skills to links this code to an actionable element in Jenkins to be fair.

from checks-api-plugin.

jglick avatar jglick commented on July 1, 2024

Means that in the multibranch config GUI you would select Status Checks Properties to customize, and from job-dsl you would need to find some way to select GitHubSCMSourceStatusChecksTrait. Seems that the github-checks plugin would need something to match #93 though right?

from checks-api-plugin.

timja avatar timja commented on July 1, 2024

Yeah looks like you're right, this was the last property added: jenkinsci/github-checks-plugin@65a3ebf

cc @mrginglymus

from checks-api-plugin.

dduportal avatar dduportal commented on July 1, 2024

Thanks a lot @jglick ! I did not know about this item. It's clear now. Looks like you're correct and that something will have to be made on github-checks if my understanding is correct. I'll defer to @timja .

from checks-api-plugin.

mrginglymus avatar mrginglymus commented on July 1, 2024

I have a half-done change for the other half of this...

from checks-api-plugin.

mrginglymus avatar mrginglymus commented on July 1, 2024

jenkinsci/github-checks-plugin#138

from checks-api-plugin.

XiongKezhi avatar XiongKezhi commented on July 1, 2024

released in https://github.com/jenkinsci/checks-api-plugin/releases/tag/v1.6.0

from checks-api-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.