jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-62138] Override by local Jenkinsfile

Open
#514 3 comments 0 reactions 0 assignees View on GitHub
component:github-organization-folder-plugin component:workflow-multibranch-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

I would like, if possible, to add the option of supporting local `Jenkinsfile` inside the repository.

The use case is that we are using a `GitHub Organization` job that picks up some repositories and run a specific `Jenkinsfile` that we specify from this plugin. The problem comes when we want to have some customisation or temporarily test something on one repository (or even one branch).

For that reason, I thought that it might be a good idea to specify some type of hierarchy:



  • If repository already has `Jenkinsfile` and override is enabled; it uses the local one instead of the remote one, otherwise

  • Remote Jenkinsfile is used

---
Originally reported by slowr, imported from: Override by local Jenkinsfile


  • assignee: kohsuke
  • status: Open
  • priority: Minor
  • component(s): github-organization-folder-plugin, workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

I would like, if possible, to add the option of supporting local `Jenkinsfile` inside the repository.

The use case is that we are using a `GitHub Organization` job that picks up some repositories and run a specific `Jenkinsfile` that we specify from this plugin. The problem comes when we want to have some customisation or temporarily test something on one repository (or even one branch).

For that reason, I thought that it might be a good idea to specify some type of hierarchy:



  • If repository already has `Jenkinsfile` and override is enabled; it uses the local one instead of the remote one, otherwise

  • Remote Jenkinsfile is used


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.