This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      LogRotator.setRemoveLastBuild(boolean) method is annotated with DataBoundSetter, but it can't be set from a pipeline (neither declarative, nor scripted):

      options {
             buildDiscarder(logRotator(numToKeepStr: '2', daysToKeepStr: '7', removeLastBuild: true))
      }
      WorkflowScript: 30: Invalid parameter "removeLastBuild", did you mean "numToKeepStr"? @ line 30, column 73.
         Str: '2', daysToKeepStr: '7', removeLast 

      This makes multibranch pipelines unusable, as builds for stale branches are never discarded.

      Discovered in JENKINS-36364

      Environment

      Jenkins 4.462

      Pipeline: Multibranch Version 795.ve0cb_1f45ca_9a_

      GitLab Branch Source Version 704.vc7f1202d7e14

            Assignee:
            Unassigned
            Reporter:
            Vasili Gulevich
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: