Code search feature isn't able to find matches in groovy Jenkins declarative pipelines (Jenkinsfile) #7782

Open
opened 2025-11-02 07:36:21 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @charlesmorin on GitHub (Aug 30, 2021).

  • Gitea version (or commit ref): 1.14.1
  • Git version: 2.10.2.windows.1
  • Operating system: Windows Server 2016 Standard (running as a Windows service).
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [] Yes (provide example URL)
    • No

Description

We have recently enabled the repository indexer (code search feature). However, it seems to not include Jenkins declarative pipeline files, which are normally named Jenkinsfile (without extensions).

I tried setting REPO_INDEXER_INCLUDE to **Jenkinsfile, but no dice.

Originally created by @charlesmorin on GitHub (Aug 30, 2021). - Gitea version (or commit ref): 1.14.1 - Git version: 2.10.2.windows.1 - Operating system: Windows Server 2016 Standard (running as a Windows service). - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [] Yes (provide example URL) - [x] No ## Description We have recently enabled the repository indexer (code search feature). However, it seems to not include Jenkins declarative pipeline files, which are normally named `Jenkinsfile` (without extensions). I tried setting `REPO_INDEXER_INCLUDE` to `**Jenkinsfile`, but no dice.
GiteaMirror added the type/bugtype/upstream labels 2025-11-02 07:36:21 -06:00
Author
Owner

@42wim commented on GitHub (Mar 11, 2022):

Bitten by the same issue, the culprit is https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml#L382 which is used by https://github.com/go-enry/go-enry which gitea uses.

Needs https://github.com/go-enry/go-enry/issues/27 to be implemented so we can override vendor detection

@42wim commented on GitHub (Mar 11, 2022): Bitten by the same issue, the culprit is https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml#L382 which is used by https://github.com/go-enry/go-enry which gitea uses. Needs https://github.com/go-enry/go-enry/issues/27 to be implemented so we can override vendor detection
Author
Owner

@viceice commented on GitHub (Jul 3, 2023):

So would REPO_INDEXER_EXCLUDE_VENDORED=false1 make it working again?

@viceice commented on GitHub (Jul 3, 2023): So would `REPO_INDEXER_EXCLUDE_VENDORED=false`[^1] make it working again? [^1]: https://docs.gitea.com/next/administration/config-cheat-sheet#indexer-indexer
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7782