Coder Social home page Coder Social logo

Comments (13)

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on June 19, 2024 1

BuildStatusChecksPublisher is the wrong place. You need PublishChecksStep.

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

Hi @XiongKezhi, If this fix is not super urgent, can I work on this?

from checks-api-plugin.

XiongKezhi avatar XiongKezhi commented on June 19, 2024

go ahead! thanks!

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

@XiongKezhi, is this issue fixed, or am I checking at the wrong place?

getChecksName(job).ifPresent(checksName -> publish(ChecksPublisherFactory.fromJob(job, TaskListener.NULL),
ChecksStatus.QUEUED, ChecksConclusion.NONE, checksName, null));

getChecksName(run).ifPresent(checksName -> publish(ChecksPublisherFactory.fromRun(run, listener),
ChecksStatus.IN_PROGRESS, ChecksConclusion.NONE, checksName, null));

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

Thanks, @KalleOlaviNiemitalo. To be clear, I shouldn't change the conclusion variable's default value but need to add a condition to check whether status is queued or in_progress, right?

from checks-api-plugin.

KalleOlaviNiemitalo avatar KalleOlaviNiemitalo commented on June 19, 2024

I don't really know what is the best way to implement this. Anyway, please test that the pipeline snippet generator behaves in a sensible way after your changes.

from checks-api-plugin.

XiongKezhi avatar XiongKezhi commented on June 19, 2024

Thanks, @KalleOlaviNiemitalo. To be clear, I shouldn't change the conclusion variable's default value but need to add a condition to check whether status is queued or in_progress, right?

yes, you should add a condition to check the status when setting the conclusion.

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

Ok sure. Thanks a lot, both of you.

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

@XiongKezhi, could you please let me know if you have any guide to follow on setting up the plugin for local testing? I referred to the Consumers Guide and Implementation Guide, but it's a bit unclear for me. It would be better if you can help me with this.

from checks-api-plugin.

XiongKezhi avatar XiongKezhi commented on June 19, 2024

@ThusithaDJ Sorry, those are not guides for users, they are for other plugin developers.

So when you are trying to test this plugin locally, first you need to set up a Jenkins instance for remote debugging. If you are using a Jenkins war file, startup it with the java options like (for more, see here):

-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000,server=y,suspend=n

Then you can set up your remote debugger to attach to it.

Finally, you need a Jenkins project to run the code of this plugin:

  1. Set up the GitHub app credentials as in this guide
  2. Use the GitHub app credentials you added to Jenkins in the last step in one of your projects. I have a multi-branch project set up like this (you should use the repository that your GitHub app is installed on):

ζˆͺ屏2021-02-09 上午12 10 53

And since you are going to modify the publishChecks step, so you should have a repository with a Jenkins pipeline calling publishChecks.

from checks-api-plugin.

timja avatar timja commented on June 19, 2024

personally I just change the dependency in the github checks repo to a SNAPSHOT dependency, build this project with mvn install -P quick-build and then run the github checks project with mvn hpi:run using the debug option in my IDE

or just using unit tests for some changes where I don't actually need GitHub

from checks-api-plugin.

ThusithaDJ avatar ThusithaDJ commented on June 19, 2024

Hi @XiongKezhi, I have pushed some changes, please check that and let me know your thoughts.
#82

from checks-api-plugin.

XiongKezhi avatar XiongKezhi commented on June 19, 2024

fixed by #82

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.