[JIRA] (JENKINS-1182) Discard old builds only if the latest build is stable

9 views
Skip to first unread message

nisshah1499@gmail.com (JIRA)

unread,
May 24, 2019, 1:22:02 PM5/24/19
to jenkinsc...@googlegroups.com
Nisarg Shah commented on New Feature JENKINS-1182
 
Re: Discard old builds only if the latest build is stable

Oleg Nenashev Is it necessary to make a new plugin? Can't we just add few "if conditions" in LogRotator or discard old build plugin? Fetching the status of last build and checking whether it was stable or not. And then performing discard actions accordingly.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
May 24, 2019, 1:25:01 PM5/24/19
to jenkinsc...@googlegroups.com

Discard Old Builds plugin might be preferable

 

nisshah1499@gmail.com (JIRA)

unread,
May 24, 2019, 1:57:02 PM5/24/19
to jenkinsc...@googlegroups.com

Okay so I will try to add this feature to discard old build plugin. I am assigning this issue to me.

nisshah1499@gmail.com (JIRA)

unread,
May 24, 2019, 1:57:02 PM5/24/19
to jenkinsc...@googlegroups.com

nisshah1499@gmail.com (JIRA)

unread,
May 25, 2019, 2:09:05 PM5/25/19
to jenkinsc...@googlegroups.com
 
Re: Discard old builds only if the latest build is stable

Oleg Nenashev Enhanced Old Build Discarder already gives this feature. 

Enhanced Old Build Discarder : https://github.com/jenkinsci/enhanced-old-build-discarder

Actually I started to code few lines and I came across one doubt, and finding solution for that doubt I found that this feature has already been implemented. 

As a plugin is there for this feature should I continue implementation(maybe both functionalities in single plugin) in Old Discard Plugin or not ?  

nisshah1499@gmail.com (JIRA)

unread,
May 27, 2019, 3:59:01 AM5/27/19
to jenkinsc...@googlegroups.com

Enhanced old build discarder is using LogRotator for discarding builds. So I think adding this feature to discard-old-build-plugin will make sense as it has more user options for discarding builds.

Reply all
Reply to author
Forward
0 new messages