Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins “Keep this build forever” button is missing

I am an admin on our Jenkins master but, this button is not available for any builds for any user.

I found this question which has a somewhat relevant answer since we are also using Matrix-based security, however no one has this button showing up on any build

Is there a plugin required to have this feature available?

What each build looks like

My version isJenkins ver. 2.105

like image 594
ayyrex Avatar asked Apr 02 '18 18:04

ayyrex


People also ask

How do I keep a build forever in Jenkins?

To manually prevent a build from getting purged according to the schedule, click on the 'Keep this build forever' button to lock the build. There are different ways to do it automatically based on the type of the Project.

How do I trigger a build automatically in Jenkins?

Follow the steps as mentioned below to trigger a Jenkins job automatically based on GitHub's webhook configurations: Step 1: Go to the Configuration page of the respective job and under the build trigger section, check the "GitHub hook trigger for GITScm polling" checkbox and click on the Save button.


1 Answers

Keep forever option appears only when relevant, meaning only if you opt in on other option Discard old builds. If not it's irrelevant see jenkins users answer

option only appears if you have chosen to Discard Builds from the config for the job. (i.e. if you have chosen not to discard any builds have a certain time/build number, then the button won't show).

like image 124
user7294900 Avatar answered Oct 22 '22 19:10

user7294900