[JENKINS-73242] Don't fail organization scan if a repository errors#790
[JENKINS-73242] Don't fail organization scan if a repository errors#790solonovamax wants to merge 1 commit intojenkinsci:masterfrom
Conversation
|
I have not added a test case for this, as I'm not too familiar with the test framework. also, please do let me know if there is anything I should change/etc. as this is my first contribution to a jenkins plugin. |
|
hey, is there anything blocking this from being merged? I've been forced to use a locally built version of the plugin, as this is a major issue to me, and having to repeatedly go and rebuild on every update is incredibly annoying. |
|
hey, @olamy very sorry to bother you, but I'm mentioning you because you seem to be the person merging most of the recent PRs. would it be possible to get it merged (or get some feedback on what needs to be changed for it to be merged), as this is a major issue for me, forcing me to use my own custom build of the plugin rather than being able to use the normal version. |
|
hey @jglick very sorry to bother you, but I would love to see this PR get merged. |
|
@solonovamax the pull request can't be merged because it has conflicts with the current content of the master branch. You need to resolve the conflicts. |
sure I can do that, give me like 10 minutes. |
See [JENKINS-73242](https://issues.jenkins.io/browse/JENKINS-73242). Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
|
fixed all of the merge conflicts however, I did notice that now two of the places I added the check are wrapped with a try/catch for if you'd prefer, can remove the try/catches that I added and instead just wrap the 3rd one in an |
I'm not a maintainer of this plugin, so my opinion has very little weight. I'll share my opinion anyway. I think that if there is an existing implementation pattern and that pattern solves your issue, then you should use the existing pattern so that the maintainers see that you are maintaining consistency with the rest of the code. |
Description
Fixes #1487
Don't fail organization scan if a repository errors. See JENKINS-73242 for further information.
Implementation details:
Before attempting any checks against the repository, run
GHRepository.getSource(). This will cause the repository to attempt to populate all the needed data.Sometimes this can fail, such as in the case where a repository was DMCA'd.
If it fails, catch that error and skip the repository.
Submitter checklist
Reviewer checklist
Documentation changes
Users/aliases to notify