[JIRA] (JENKINS-37907) Include abililty to hook branch deletion.

2 views
Skip to first unread message

travis.cline@gmail.com (JIRA)

unread,
Sep 1, 2016, 3:36:01 PM9/1/16
to jenkinsc...@googlegroups.com
Travis Cline created an issue
 
Jenkins / Improvement JENKINS-37907
Include abililty to hook branch deletion.
Issue Type: Improvement Improvement
Assignee: Kohsuke Kawaguchi
Components: github-organization-folder-plugin
Created: 2016/Sep/01 7:35 PM
Priority: Minor Minor
Reporter: Travis Cline

Being able to hook branch deletion would allow cleanup of external artifacts that might be created by a pipeline (setting up staging environments for example).

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mneale@cloudbees.com (JIRA)

unread,
Sep 6, 2016, 9:50:01 PM9/6/16
to jenkinsc...@googlegroups.com
Michael Neale commented on Improvement JENKINS-37907
 
Re: Include abililty to hook branch deletion.

Travis Cline not sure what this is asking for. Do you mean recieve the webhook from github so that it can clean things up as soon as they are removed? Or something else ?

(a something else I have wanted is for agents to cleanup workspaces ASAP after deletion to save disk, not sure if that is what you are thinking about?)

travis.cline@gmail.com (JIRA)

unread,
Sep 7, 2016, 2:00:01 PM9/7/16
to jenkinsc...@googlegroups.com
Travis Cline updated an issue
 
Change By: Travis Cline
Being able to hook have arbitrary run on branch deletion would allow cleanup of external artifacts that might be created by a pipeline (setting up staging environments for example).

travis.cline@gmail.com (JIRA)

unread,
Sep 7, 2016, 2:01:01 PM9/7/16
to jenkinsc...@googlegroups.com
Travis Cline commented on Improvement JENKINS-37907
 
Re: Include abililty to hook branch deletion.

Michael Neale - in my use case i have jobs creating external running environments and removing them on branch deletion is desirable.

stephen.alan.connolly@gmail.com (JIRA)

unread,
Dec 19, 2016, 5:24:01 AM12/19/16
to jenkinsc...@googlegroups.com
Stephen Connolly resolved as Fixed
 

The GitHub Org Folders plugin is being tombstoned.

The functionality provided by the GitHub Org Folders plugin has been significantly refactored and migrated to the GitHub Branch Source plugin.

Please verify if this issue is an issue with GitHub Branch Source 2.0.0-beta-1 (available from the experimental update center now or 2.0.0 (available in early January 2017)

Change By: Stephen Connolly
Status: Open Resolved
Resolution: Fixed

stephen.alan.connolly@gmail.com (JIRA)

unread,
Dec 19, 2016, 5:26:01 AM12/19/16
to jenkinsc...@googlegroups.com
Stephen Connolly commented on Improvement JENKINS-37907
 
Re: Include abililty to hook branch deletion.

With GitHub Branch Source 2.0.0-beta-1 (or newer) the branch being deleted (or no longer being recognised as a project - e.g. removing Jenkinsfile) will mark the branch as a Dead Branch, which can then either be manually deleted or will be deleted on the next index (as the branch retention policy is implicit to only get applied on each index and also otherwise things like "close PR -> reopen PR -> trigger rebuild" would destroy the PR build history)

peter@novotnak.net (JIRA)

unread,
Feb 16, 2017, 3:57:01 PM2/16/17
to jenkinsc...@googlegroups.com
Peter Novotnak updated an issue
 
Change By: Peter Novotnak
Component/s: github-branch-source-plugin

peter@novotnak.net (JIRA)

unread,
Feb 16, 2017, 5:09:04 PM2/16/17
to jenkinsc...@googlegroups.com
Peter Novotnak commented on Improvement JENKINS-37907
 
Re: Include abililty to hook branch deletion.

I just want to bump this up--it would be super useful to be able to hook in cleanup jobs when branches are deleted. Even if it's on a per-organization basis.

In my case I'd like to set up branch deployments for QA and tear them down again when a branch is deleted. I can make the creation steps idempotent, but not having a trigger for deletion stuff makes this significantly harder.

mneale@cloudbees.com (JIRA)

unread,
Feb 16, 2017, 5:52:02 PM2/16/17
to jenkinsc...@googlegroups.com

There is a listener for job deletion - probably from that you could work out that it was actually a branch deletion happening (ie filter the events down to branches being deleted... probably)

mneale@cloudbees.com (JIRA)

unread,
Feb 16, 2017, 5:52:05 PM2/16/17
to jenkinsc...@googlegroups.com
Michael Neale edited a comment on Improvement JENKINS-37907
There is a listener for job deletion - probably from that you could work out that it was actually a branch deletion happening (ie filter the events down to branches being deleted... probably)



(remember at some level branches are just jobs in a folder, underneath it all)

aytuncbeken.ab@gmail.com (JIRA)

unread,
Sep 6, 2019, 7:54:04 AM9/6/19
to jenkinsc...@googlegroups.com

Long time passed but if anyone still requires this feature can user the plugin MultiBranch Action Triggers
https://github.com/jenkinsci/multibranch-action-triggers-plugin

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages