jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-76228] Jenkinsfile not found for reopened PR on GitHub

Open
#1,480 1 comment 0 reactions 0 assignees View on GitHub
component:github-api-plugin component:github-branch-source-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

We are still facing the same issue as JENKINS-54126 even with the fix https://github.com/hub4j/github-api/blob/github-api-1.321/src/main/java/org/kohsuke/github/GitHubClient.java#L778.

I cannot find the log “Encountered GitHub invalid cached 404…” in Jenkins log.

 

Infra:

Jenkins core 2.504.2

GitHub Branch Source 1822.v9eec8e5e69e3

 

Reproduce steps: 

1. Open a PR

2. Make sure PR has been indexed on Jenkins

3. Close this PR, Scan repository on Jenkins

4. Reopen this PR, scan repository on Jenkins again  - and see in logs:

Getting remote pull requests...

Checking pull request #2
‘Jenkinsfile’ not found
Does not meet criteria

 

---
Originally reported by jenna_chen, imported from: Jenkinsfile not found for reopened PR on GitHub


  • assignee: bitwiseman
  • status: Open
  • priority: Blocker
  • component(s): github-api-plugin, github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 5
  • imported: 2025-12-02

Raw content of original issue

We are still facing the same issue as JENKINS-54126 even with the fix https://github.com/hub4j/github-api/blob/github-api-1.321/src/main/java/org/kohsuke/github/GitHubClient.java#L778.
I cannot find the log “Encountered GitHub invalid cached 404…” in Jenkins log.
 
Infra:
Jenkins core 2.504.2
GitHub Branch Source 1822.v9eec8e5e69e3
 
Reproduce steps: 
1. Open a PR

2. Make sure PR has been indexed on Jenkins

3. Close this PR, Scan repository on Jenkins

4. Reopen this PR, scan repository on Jenkins again  - and see in logs:



Getting remote pull requests...

Checking pull request #2
‘Jenkinsfile’ not found
Does not meet criteria


 

environment

```
Jenkins core 2.504.2

GitHub Branch Source 1822.v9eec8e5e69e3
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.