Rollback to deprecated "logrotate" JJB option

sre-ci dislikes new parameter

Change-Id: I124e1b125343b02f167f9ea6b768e6b5f9492847
diff --git a/jobs/templates/2019.2.0-heat-cicd-pike-dvr-sl.yml b/jobs/templates/2019.2.0-heat-cicd-pike-dvr-sl.yml
index 8e6c353..09dddeb 100644
--- a/jobs/templates/2019.2.0-heat-cicd-pike-dvr-sl.yml
+++ b/jobs/templates/2019.2.0-heat-cicd-pike-dvr-sl.yml
@@ -214,6 +214,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      daysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/2019.2.0-heat-cicd-queens-contrail41-sl.yml b/jobs/templates/2019.2.0-heat-cicd-queens-contrail41-sl.yml
index a5717ad..da2f030 100644
--- a/jobs/templates/2019.2.0-heat-cicd-queens-contrail41-sl.yml
+++ b/jobs/templates/2019.2.0-heat-cicd-queens-contrail41-sl.yml
@@ -219,7 +219,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/2019.2.0-heat-cicd-queens-dvr-sl.yml b/jobs/templates/2019.2.0-heat-cicd-queens-dvr-sl.yml
index 6eeb8a8..ca9f0f5 100644
--- a/jobs/templates/2019.2.0-heat-cicd-queens-dvr-sl.yml
+++ b/jobs/templates/2019.2.0-heat-cicd-queens-dvr-sl.yml
@@ -219,6 +219,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/bm-b300-cicd-queens-ovs-maas.yml b/jobs/templates/bm-b300-cicd-queens-ovs-maas.yml
index f58de1c..669390a 100644
--- a/jobs/templates/bm-b300-cicd-queens-ovs-maas.yml
+++ b/jobs/templates/bm-b300-cicd-queens-ovs-maas.yml
@@ -218,6 +218,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/bm-cicd-pike-ovs-maas.yml b/jobs/templates/bm-cicd-pike-ovs-maas.yml
index 5092db1..5de2225 100644
--- a/jobs/templates/bm-cicd-pike-ovs-maas.yml
+++ b/jobs/templates/bm-cicd-pike-ovs-maas.yml
@@ -205,7 +205,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/bm-cicd-queens-ovs-maas.yml b/jobs/templates/bm-cicd-queens-ovs-maas.yml
index 61384af..9f62f1f 100644
--- a/jobs/templates/bm-cicd-queens-ovs-maas.yml
+++ b/jobs/templates/bm-cicd-queens-ovs-maas.yml
@@ -218,6 +218,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/bm-e7-cicd-pike-odl-maas.yml b/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
index 7507fa1..a49c9ab 100644
--- a/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
+++ b/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
@@ -215,7 +215,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml b/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
index 25b7560..af34ce7 100644
--- a/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
+++ b/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
@@ -210,7 +210,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/cleanup-jenkins-agents.yml b/jobs/templates/cleanup-jenkins-agents.yml
index 46039b5..3fa97b4 100644
--- a/jobs/templates/cleanup-jenkins-agents.yml
+++ b/jobs/templates/cleanup-jenkins-agents.yml
@@ -14,6 +14,6 @@
           - master
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/remove-old-jenkins-agents.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
\ No newline at end of file
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
\ No newline at end of file
diff --git a/jobs/templates/deploy-released.yml b/jobs/templates/deploy-released.yml
index 714d29e..7f90648 100644
--- a/jobs/templates/deploy-released.yml
+++ b/jobs/templates/deploy-released.yml
@@ -58,6 +58,6 @@
           clean:
             before: true
       script-path: jobs/pipelines/rotation-released-deployment.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToeep: 60
diff --git a/jobs/templates/deploy_bm.yml b/jobs/templates/deploy_bm.yml
index eaa6b04..1ab474c 100644
--- a/jobs/templates/deploy_bm.yml
+++ b/jobs/templates/deploy_bm.yml
@@ -52,7 +52,7 @@
             refspec: ${{TCP_QA_REFS}}
             url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/rotation_bm_deployments.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/download-config-drive.yml b/jobs/templates/download-config-drive.yml
index 94269ec..d636dbc 100644
--- a/jobs/templates/download-config-drive.yml
+++ b/jobs/templates/download-config-drive.yml
@@ -105,9 +105,9 @@
 
       }}
     name: download-config-drive
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
     parameters:
     - string:
         default: ''
diff --git a/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml b/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml
index d8f618b..bead0a8 100644
--- a/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml
+++ b/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml
@@ -231,6 +231,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml b/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
index a06d317..87cf161 100644
--- a/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
+++ b/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
@@ -232,6 +232,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/heat-cicd-pike-dvr-sl.yml b/jobs/templates/heat-cicd-pike-dvr-sl.yml
index 7f48f08..91db005 100644
--- a/jobs/templates/heat-cicd-pike-dvr-sl.yml
+++ b/jobs/templates/heat-cicd-pike-dvr-sl.yml
@@ -9,8 +9,8 @@
     triggers:
     - timed: '{obj:trigger_time}'
     properties:
-    - build-discarder:
-        days-to-keep: 365
+    - logrotate:
+        DaysToKeep: 365
         num-to-keep: 50
     parameters:
     - string:
@@ -221,6 +221,6 @@
           clean:
             before: true
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/heat-cicd-queens-contrail41-sl.yml b/jobs/templates/heat-cicd-queens-contrail41-sl.yml
index 248fdbe..d4460c6 100644
--- a/jobs/templates/heat-cicd-queens-contrail41-sl.yml
+++ b/jobs/templates/heat-cicd-queens-contrail41-sl.yml
@@ -217,7 +217,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/heat-cicd-queens-dvr-sl.yml b/jobs/templates/heat-cicd-queens-dvr-sl.yml
index 1cdacfa..9e2ecc5 100644
--- a/jobs/templates/heat-cicd-queens-dvr-sl.yml
+++ b/jobs/templates/heat-cicd-queens-dvr-sl.yml
@@ -218,7 +218,7 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
diff --git a/jobs/templates/release-artifact-checker.yml b/jobs/templates/release-artifact-checker.yml
index 1b9cd07..9462e15 100644
--- a/jobs/templates/release-artifact-checker.yml
+++ b/jobs/templates/release-artifact-checker.yml
@@ -9,6 +9,6 @@
     builders:
     - shell:
         "python3 jobs/scripts/mcp_mu_release_artifact_checker.py"
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-bm-b300-cicd-queens-ovs-maas.yml b/jobs/templates/released-bm-b300-cicd-queens-ovs-maas.yml
index 751804b..d577e73 100644
--- a/jobs/templates/released-bm-b300-cicd-queens-ovs-maas.yml
+++ b/jobs/templates/released-bm-b300-cicd-queens-ovs-maas.yml
@@ -227,6 +227,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-bm-pike-ovs.yml b/jobs/templates/released-bm-pike-ovs.yml
index 3ef04da..0f9181d 100644
--- a/jobs/templates/released-bm-pike-ovs.yml
+++ b/jobs/templates/released-bm-pike-ovs.yml
@@ -198,6 +198,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml b/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
index a8922d8..f54744f 100644
--- a/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
+++ b/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
@@ -230,6 +230,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-heat-cicd-pike-dvr-sl.yml b/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
index 398a114..240e443 100644
--- a/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
+++ b/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
@@ -230,6 +230,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml b/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
index 4dfd557..cb714cc 100644
--- a/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
+++ b/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
@@ -233,6 +233,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/released-heat-cicd-queens-dvr-sl.yml b/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
index eb93df6..54c0eae 100644
--- a/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
+++ b/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
@@ -230,6 +230,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/self-deploy-jobs.yaml b/jobs/templates/self-deploy-jobs.yaml
index 6bea711..c38d9ae 100644
--- a/jobs/templates/self-deploy-jobs.yaml
+++ b/jobs/templates/self-deploy-jobs.yaml
@@ -24,6 +24,6 @@
           refspec: '${{TCP_QA_REFS}}'
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/self-deploy-jobs.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/self-deploy-virtulenvs.yaml b/jobs/templates/self-deploy-virtulenvs.yaml
index 8cc4d47..c5fd64c 100644
--- a/jobs/templates/self-deploy-virtulenvs.yaml
+++ b/jobs/templates/self-deploy-virtulenvs.yaml
@@ -20,8 +20,8 @@
     builders:
       - shell: "chmod +x tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh"
       - shell: "export CHANGE_RIGHTS=false ; ./tcp_tests/templates/_packer/scripts/jenkins_virtualenvs.sh"
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
 
diff --git a/jobs/templates/swarm-deploy-cicd.yml b/jobs/templates/swarm-deploy-cicd.yml
index 217c6bf..aee3e01 100644
--- a/jobs/templates/swarm-deploy-cicd.yml
+++ b/jobs/templates/swarm-deploy-cicd.yml
@@ -69,6 +69,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-deploy-cicd.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/swarm-deploy-platform.yml b/jobs/templates/swarm-deploy-platform.yml
index dbcaae5..cc97ccb 100644
--- a/jobs/templates/swarm-deploy-platform.yml
+++ b/jobs/templates/swarm-deploy-platform.yml
@@ -70,6 +70,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-deploy-platform.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/swarm-run-pytest.yml b/jobs/templates/swarm-run-pytest.yml
index a511794..681c460 100644
--- a/jobs/templates/swarm-run-pytest.yml
+++ b/jobs/templates/swarm-run-pytest.yml
@@ -89,6 +89,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-run-pytest.groovy
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
diff --git a/jobs/templates/test-scenarios.yml b/jobs/templates/test-scenarios.yml
index 1d26ca0..2df3f5d 100644
--- a/jobs/templates/test-scenarios.yml
+++ b/jobs/templates/test-scenarios.yml
@@ -93,9 +93,9 @@
 
     jobs:
       - '{test_scenario}'
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
 - job-group:
     name: 'ceph-tests'
@@ -118,9 +118,9 @@
           display-name: Failover tests for Ceph nodes
     jobs:
       - '{test_scenario}'
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
 - job-group:
     name: 'update-tests'
@@ -206,9 +206,9 @@
 
     jobs:
       - '{test_scenario}'
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
 
 ###################### JOB TEMPLATE ###################
 - job-template:
@@ -220,9 +220,9 @@
     disabled: '{disabled|false}'
     quiet-period: 2
     node: 'openstack_slave_{deployment}'
-    build-discarder:
-      days-to-keep: 365
-      artifact-days-to-keep: 60
+    logrotate:
+      DaysToKeep: 365
+      artifactDaysToKeep: 60
       num-to-keep: 60
       artifact-num-to-keep: 60
     # Requires the Jenkins BuildResultTrigger Plugin