jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-54045] Jenkinsfile in subfolder not found

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

Description

With the newest version of the plugin (2.4.0) I was scanning my GitHub-Organization and projects with a Jenkinsfile in a subfolder (e.g. PipelineService/Jenkinsfile) couldn't be found, even though the configuration was explicitly stating to look for "PipelineService/Jenkinsfile").

I downgraded to 2.3.4 and then it was working again.

This may be related to issue https://issues.jenkins-ci.org/browse/JENKINS-49261, but I am not sure.

If you can point me to the relevant lines of code, I would be happy to work on a fix aswell.

Thanks a lot!

---
Originally reported by kvnmrz, imported from: Jenkinsfile in subfolder not found


  • status: Open
  • priority: Major
  • component(s): github-branch-source-plugin
  • label(s): regression
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

With the newest version of the plugin (2.4.0) I was scanning my GitHub-Organization and projects with a Jenkinsfile in a subfolder (e.g. PipelineService/Jenkinsfile) couldn't be found, even though the configuration was explicitly stating to look for "PipelineService/Jenkinsfile").

I downgraded to 2.3.4 and then it was working again.

This may be related to issue https://issues.jenkins-ci.org/browse/JENKINS-49261, but I am not sure.

If you can point me to the relevant lines of code, I would be happy to work on a fix aswell.

Thanks a lot!

environment

```
Jenkins ver. 2.107.3

Plugin, Version, Enabled?

ace-editor 1.1 true

active-directory 2.8 true

analysis-collector 1.52 true

analysis-core 1.95 true

ansicolor 0.5.2 true

antisamy-markup-formatter 1.5 true

apache-httpcomponents-client-4-api 4.5.5-3.0 true

authentication-tokens 1.3 true

badge 1.6 true

blueocean 1.6.2 true

blueocean-autofavorite 1.2.2 true

blueocean-bitbucket-pipeline 1.6.2 true

blueocean-commons 1.6.2 true

blueocean-config 1.6.2 true

blueocean-core-js 1.6.2 true

blueocean-dashboard 1.6.2 true

blueocean-display-url 2.2.0 true

blueocean-events 1.6.2 true

blueocean-git-pipeline 1.6.2 true

blueocean-github-pipeline 1.6.2 true

blueocean-i18n 1.6.2 true

blueocean-jira 1.6.2 true

blueocean-jwt 1.6.2 true

blueocean-personalization 1.6.2 true

blueocean-pipeline-api-impl 1.6.2 true

blueocean-pipeline-editor 1.6.2 true

blueocean-pipeline-scm-api 1.6.2 true

blueocean-rest 1.6.2 true

blueocean-rest-impl 1.6.2 true

blueocean-web 1.6.2 true

bouncycastle-api 2.17 true

branch-api 2.0.20 true

build-user-vars-plugin 1.5 true

checkmarx 8.70.0 true

checkstyle 3.50 true

ci-connect 2.1.7 true

ci-connect-remote-execution 2.0.1 true

cloudbees-bitbucket-branch-source 2.2.12 true

cloudbees-folder 6.5.1 true

cobertura 1.13 true

code-coverage-api 1.0.5 true

command-launcher 1.2 true

config-file-provider 3.2 true

copyartifact 1.39.1 true

credentials 2.1.18 true

credentials-binding 1.16 true

dashboard-view 2.9.11 true

dependency-check-jenkins-plugin 3.3.2 true

disk-usage 0.28 true

display-url-api 2.2.0 true

docker-commons 1.13 true

docker-workflow 1.17 true

dry 2.50 true

durable-task 1.26 true

dynatrace-dashboard 2.1.3 true

email-ext 2.63 true

extended-read-permission 2.0 true

favorite 2.3.2 true

findbugs 4.72 true

git 3.9.1 true

git-client 2.7.3 true

git-server 1.7 true

github 1.29.3 true

github-api 1.92 true

github-branch-source 2.3.4 true

github-oauth 0.29 true

groovy 2.0 true

groovy-postbuild 2.4.2 true

handlebars 1.1.1 true

handy-uri-templates-2-api 2.1.6-1.0 true

htmlpublisher 1.17 true

http_request 1.8.22 true

icon-shim 2.0.3 true

influxdb 1.20 true

jackson2-api 2.8.11.3 true

jacoco 3.0.3 true

javadoc 1.4 true

jenkins-design-language 1.6.2 true

jira 3.0.2 true

job-dsl 1.70 true

jobConfigHistory 2.18.2 true

jquery 1.12.4-0 true

jquery-detached 1.2.1 true

jsch 0.1.54.2 true

junit 1.26.1 true

kubernetes 1.12.2 true

kubernetes-credentials 0.4.0 true

lockable-resources 2.3 true

mailer 1.21 true

mapdb-api 1.0.9.0 true

mask-passwords 2.12.0 true

matrix-auth 2.3 true

matrix-project 1.13 true

mattermost 2.5.2 true

maven-plugin 3.1.2 true

mercurial 2.4 true

metrics 4.0.2.2 true

momentjs 1.1.1 true

Parameterized-Remote-Trigger 3.0.6 true

performance 3.12 true

pipeline-build-step 2.7 true

pipeline-graph-analysis 1.7 true

pipeline-input-step 2.8 true

pipeline-maven 3.5.14 true

pipeline-milestone-step 1.3.1 true

pipeline-model-api 1.3.2 true

pipeline-model-declarative-agent 1.1.1 true

pipeline-model-definition 1.3.2 true

pipeline-model-extensions 1.3.2 true

pipeline-rest-api 2.10 true

pipeline-stage-step 2.3 true

pipeline-stage-tags-metadata 1.3.2 true

pipeline-stage-view 2.10 true

pipeline-utility-steps 2.1.0 true

plain-credentials 1.4 true

pmd 3.50 true

pubsub-light 1.12 true

rebuild 1.29 true

resource-disposer 0.12 true

robot 1.6.5 true

saferestart 0.3 true

saml 1.0.9 true

scm-api 2.2.8 true

scm-sync-configuration 0.0.10 true

script-security 1.46 true

sidebar-link 1.9.1 true

simple-theme-plugin 0.5.1 true

slack 2.3 true

sonar 2.8.1 true

sse-gateway 1.16 true

ssh-agent 1.17 true

ssh-credentials 1.14 true

ssh-slaves 1.28.1 true

structs 1.17 true

subversion 2.12.1 true

tasks 4.52 true

timestamper 1.8.10 true

token-macro 2.5 true

twb-plugin 2.0.2 true

variant 1.1 true

warnings 4.68 true

windows-slaves 1.3.1 true

workflow-aggregator 2.5 true

workflow-api 2.27 true

workflow-basic-steps 2.8.2 true

workflow-cps 2.57 true

workflow-cps-global-lib 2.12 true

workflow-durable-task-step 2.22 true

workflow-job 2.25 true

workflow-multibranch 2.20 true

workflow-scm-step 2.7 true

workflow-step-api 2.16 true

workflow-support 2.20 true

ws-cleanup 0.34 true
```

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.