jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-75690] multibranch job delete branch jobs immidately after branch deleted

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

Description

I would like to delete the branch job immediately after the branch is deleted. currently, even after setting the orphanedItemStrategy like this,

 

false

-1

-1

true

 

The branch job is disabled first and only after the next scan it is removed. This causes some resource consumption and cost. we are using https://github.com/jenkinsci/multibranch-action-triggers-plugin/ to trigger other jobs to remove the resources.  

---
Originally reported by krishgcek, imported from: multibranch job delete branch jobs immidately after branch deleted


  • status: Open
  • priority: Critical
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

I would like to delete the branch job immediately after the branch is deleted. currently, even after setting the orphanedItemStrategy like this,

 

<abortBuilds>false</abortBuilds>
<daysToKeep>-1</daysToKeep>
<numToKeep>-1</numToKeep>
<pruneDeadBranches>true</pruneDeadBranches>
</orphanedItemStrategy>

 

The branch job is disabled first and only after the next scan it is removed. This causes some resource consumption and cost. we are using https://github.com/jenkinsci/multibranch-action-triggers-plugin/ to trigger other jobs to remove the resources.  

  • environment: ubuntu jenkins Version 2.492.2

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.