Reorganization automation testing

-added logrotate for each template
-deleted maintenance job
-added upgrade to proposed logic

Related-Prod: PROD-36426
Change-Id: I4af290dcecc4ed7cef495eb9c8202077b2b0b46d

Change-Id: I84d374d2adad877976dffc8d98d3ad938364e8e9
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 f4bbdb7..66cd438 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,3 +214,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
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 dee912d..687d47d 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,4 +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
+    logrotate:
+      daysToKeep: 365
 
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 d70132c..230379f 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,3 +219,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/bm-cicd-pike-ovs-maas.yml b/jobs/templates/bm-cicd-pike-ovs-maas.yml
index 8a51c81..d3dfb38 100644
--- a/jobs/templates/bm-cicd-pike-ovs-maas.yml
+++ b/jobs/templates/bm-cicd-pike-ovs-maas.yml
@@ -205,4 +205,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/bm-cicd-queens-ovs-maas.yml b/jobs/templates/bm-cicd-queens-ovs-maas.yml
index be5b487..2b104f7 100644
--- a/jobs/templates/bm-cicd-queens-ovs-maas.yml
+++ b/jobs/templates/bm-cicd-queens-ovs-maas.yml
@@ -218,3 +218,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/bm-e7-cicd-pike-odl-maas.yml b/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
index 617b5c5..1b21f1c 100644
--- a/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
+++ b/jobs/templates/bm-e7-cicd-pike-odl-maas.yml
@@ -210,4 +210,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml b/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
index c1dde4a..b0feb54 100644
--- a/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
+++ b/jobs/templates/bm-e7-cicd-pike-ovs-maas.yml
@@ -205,4 +205,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/cookied-cicd-queens-dvr-sl-heat.yml b/jobs/templates/cookied-cicd-queens-dvr-sl-heat.yml
index ff44cd3..a8bbfd7 100644
--- a/jobs/templates/cookied-cicd-queens-dvr-sl-heat.yml
+++ b/jobs/templates/cookied-cicd-queens-dvr-sl-heat.yml
@@ -181,3 +181,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://review.gerrithub.io/Mirantis/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/deploy-released.yml b/jobs/templates/deploy-released.yml
index ac17ec2..95f2ff5 100644
--- a/jobs/templates/deploy-released.yml
+++ b/jobs/templates/deploy-released.yml
@@ -58,3 +58,5 @@
           clean:
             before: true
       script-path: jobs/pipelines/rotation-released-deployment.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/deploy_bm.yml b/jobs/templates/deploy_bm.yml
index 94a406c..ebdb885 100644
--- a/jobs/templates/deploy_bm.yml
+++ b/jobs/templates/deploy_bm.yml
@@ -52,4 +52,6 @@
             refspec: ${{TCP_QA_REFS}}
             url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/rotation_bm_deployments.groovy
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/download-config-drive.yml b/jobs/templates/download-config-drive.yml
index 8e8fc90..74bd001 100644
--- a/jobs/templates/download-config-drive.yml
+++ b/jobs/templates/download-config-drive.yml
@@ -105,6 +105,8 @@
 
       }}
     name: download-config-drive
+    logrotate:
+      daysToKeep: 365
     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 c52d71e..c55e807 100644
--- a/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml
+++ b/jobs/templates/heat-bm-cicd-pike-contrail-sl.yml
@@ -231,3 +231,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml b/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
index 1d7c0bc..cae7d08 100644
--- a/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
+++ b/jobs/templates/heat-bm-cicd-queens-contrail-sl.yml
@@ -232,3 +232,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/heat-cicd-pike-dvr-sl.yml b/jobs/templates/heat-cicd-pike-dvr-sl.yml
index 31623fc..0248d9d 100644
--- a/jobs/templates/heat-cicd-pike-dvr-sl.yml
+++ b/jobs/templates/heat-cicd-pike-dvr-sl.yml
@@ -221,3 +221,5 @@
           clean:
             before: true
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/heat-cicd-queens-contrail41-sl.yml b/jobs/templates/heat-cicd-queens-contrail41-sl.yml
index 3a17c80..a7e8944 100644
--- a/jobs/templates/heat-cicd-queens-contrail41-sl.yml
+++ b/jobs/templates/heat-cicd-queens-contrail41-sl.yml
@@ -217,4 +217,6 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/heat-cicd-queens-dvr-sl.yml b/jobs/templates/heat-cicd-queens-dvr-sl.yml
index e138c6e..3ba3d08 100644
--- a/jobs/templates/heat-cicd-queens-dvr-sl.yml
+++ b/jobs/templates/heat-cicd-queens-dvr-sl.yml
@@ -218,4 +218,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
+    logrotate:
+      daysToKeep: 365
 
diff --git a/jobs/templates/maintenance-heat-cicd-pike-dvr-sl.yml b/jobs/templates/maintenance-heat-cicd-pike-dvr-sl.yml
deleted file mode 100644
index 7fd3f3b..0000000
--- a/jobs/templates/maintenance-heat-cicd-pike-dvr-sl.yml
+++ /dev/null
@@ -1,211 +0,0 @@
-- job-template:
-    project-type: pipeline
-    description: '{job-description}'
-    concurrent: true
-    disabled: false
-    name: maintenance-heat-cicd-pike-dvr-sl
-    parameters:
-    - string:
-        default: heat-cicd-pike-dvr-sl
-        description: ''
-        name: LAB_CONFIG_NAME
-        trim: 'false'
-    - string:
-        default: core,cicd
-        description: Comma-separated list of stacks to deploy the drivetrain (salt
-          cluster and cicd nodes)
-        name: DRIVETRAIN_STACK_INSTALL
-        trim: 'false'
-    - string:
-        default: '18000'
-        description: ''
-        name: DRIVETRAIN_STACK_INSTALL_TIMEOUT
-        trim: 'false'
-    - string:
-        default: openstack,ovs,ceph,stacklight
-        description: Comma-separated list of stacks to deploy the target platform
-          (openstack and additional components)
-        name: PLATFORM_STACK_INSTALL
-        trim: 'false'
-    - string:
-        default: '15000'
-        description: ''
-        name: PLATFORM_STACK_INSTALL_TIMEOUT
-        trim: 'false'
-    - string:
-        default: 2019.2.0
-        description: ''
-        name: MCP_VERSION
-        trim: 'false'
-    - string:
-        default: sre-team-infra
-        description: ''
-        name: NODE_NAME
-        trim: 'false'
-    - string:
-        default: /home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2
-        description: ''
-        name: MCP_IMAGE_PATH1604
-        trim: 'false'
-    - string:
-        default: /home/jenkins/images/cfg01-day01.qcow2
-        description: ''
-        name: IMAGE_PATH_CFG01_DAY01
-        trim: 'false'
-    - string:
-        default: cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso
-        description: ISO name that will be generated and downloaded to the /home/jenkins/images/
-        name: CFG01_CONFIG_IMAGE_NAME
-        trim: 'false'
-    - string:
-        default: maintenance-heat-cicd-pike-dvr-sl
-        description: ''
-        name: ENV_NAME
-        trim: 'false'
-    - string:
-        default: ''
-        description: |-
-          Example: refs/changes/89/411189/36
-          (for now - only one reference allowed)
-        name: TCP_QA_REFS
-        trim: 'false'
-    - string:
-        default: refs/heads/release/proposed/2019.2.0
-        description: reference to patchset in pipeline-library
-        name: PIPELINE_LIBRARY_REF
-        trim: 'false'
-    - string:
-        default: refs/heads/release/proposed/2019.2.0
-        description: reference to patchset in mk-pipelines
-        name: MK_PIPELINES_REF
-        trim: 'false'
-    - string:
-        default: release/proposed/2019.2.0
-        description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
-          value
-        name: COOKIECUTTER_TEMPLATE_COMMIT
-        trim: 'false'
-    - string:
-        default: release/proposed/2019.2.0
-        description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
-          value
-        name: SALT_MODELS_SYSTEM_COMMIT
-        trim: 'false'
-    - string:
-        default: -m "run_cvp_func_sanity|run_tempest|run_stacklight"
-        description: |-
-          Pytest option -k or -m, with expression to select necessary tests.
-          Additional pytest options are allowed.
-        name: RUN_TEST_OPTS
-        trim: 'false'
-    - bool:
-        default: false
-        description: ''
-        name: SHUTDOWN_ENV_ON_TEARDOWN
-    - string:
-        default: ''
-        description: ''
-        name: COOKIECUTTER_REF_CHANGE
-        trim: 'false'
-    - string:
-        default: ''
-        description: ''
-        name: ENVIRONMENT_TEMPLATE_REF_CHANGE
-        trim: 'false'
-    - string:
-        default: '[MCP1.1_PIKE]Tempest'
-        description: ''
-        name: TEMPEST_TEST_SUITE_NAME
-        trim: 'false'
-    - string:
-        default: pike
-        description: ''
-        name: TEMPEST_IMAGE_VERSION
-        trim: 'false'
-    - string:
-        default: ''
-        description: ''
-        name: TEMPEST_TARGET
-        trim: 'false'
-    - string:
-        default: proposed
-        description: ''
-        name: UPDATE_REPO_CUSTOM_TAG
-        trim: 'false'
-    - bool:
-        default: false
-        description: If set, reports will be created in TestRail for this build
-        name: REPORT_TO_TESTRAIL
-    - choice:
-        choices:
-        - heat
-        - devops
-        description: ''
-        name: ENV_MANAGER
-    - string:
-        default: https://ic-eu.ssl.mirantis.net:5000/v3
-        description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3
-
-          '
-        name: OS_AUTH_URL
-        trim: 'false'
-    - string:
-        default: maintenance-team
-        description: OpenStack project (tenant) name
-        name: OS_PROJECT_NAME
-        trim: 'false'
-    - string:
-        default: ldap_mirantis
-        description: OpenStack user domain name
-        name: OS_USER_DOMAIN_NAME
-        trim: 'false'
-    - string:
-        default: maintenance-team
-        description: Jenkins credentials ID with username and password to create a
-          heat stack in OpenStack
-        name: OS_CREDENTIALS
-        trim: 'false'
-    - string:
-        default: us-cloud.env
-        description: |-
-          Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
-          , for example: microcloud-8116.env
-        name: LAB_PARAM_DEFAULTS
-        trim: 'false'
-    - string:
-        default: release/proposed/2019.2.0
-        description: ''
-        name: JENKINS_PIPELINE_BRANCH
-        trim: 'false'
-    - string:
-        default: ''
-        description: ''
-        name: TEMPEST_PATTERN
-        trim: 'false'
-    - string:
-        default: refs/heads/release/proposed/2019.2.0
-        description: ''
-        name: MCP_COMMON_SCRIPTS_REFS
-        trim: 'false'
-    - string:
-        default: proposed
-        description: ''
-        name: UPDATE_VERSION
-        trim: 'false'
-    - bool:
-        default: false
-        description: Whether to perform dist-upgrade on virtual nodes during deployment
-        name: DIST_UPGRADE_NODES
-    - bool:
-        default: false
-        description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
-        name: UPGRADE_SALTSTACK
-    pipeline-scm:
-      lightweight-checkout: false
-      scm:
-      - git:
-          branches:
-          - FETCH_HEAD
-          refspec: ${{TCP_QA_REFS}}
-          url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
-      script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
diff --git a/jobs/templates/release-artifact-checker.yml b/jobs/templates/release-artifact-checker.yml
index 726bfd6..b1c9c29 100644
--- a/jobs/templates/release-artifact-checker.yml
+++ b/jobs/templates/release-artifact-checker.yml
@@ -9,3 +9,5 @@
     builders:
     - shell:
         "python3 jobs/scripts/mcp_mu_release_artifact_checker.py"
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/released-bm-pike-ovs.yml b/jobs/templates/released-bm-pike-ovs.yml
index 5daf58b..88cbdef 100644
--- a/jobs/templates/released-bm-pike-ovs.yml
+++ b/jobs/templates/released-bm-pike-ovs.yml
@@ -198,3 +198,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml b/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
index 87141ea..f0670f0 100644
--- a/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
+++ b/jobs/templates/released-heat-cicd-pike-contrail41-sl.yml
@@ -221,12 +221,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    publishers:
-    - conditional-publisher:
-      - condition-kind: boolean-expression
-        condition-expression: $RUN_UPGRADE_AFTER_JOB
-        action:
-        - trigger-parameterized-builds:
-          - project: 'mcp-update-pike-contrail-sl'
-            condition: SUCCESS
-            trigger-with-no-params: true
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/released-heat-cicd-pike-dvr-sl.yml b/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
index 51b2f80..9273793 100644
--- a/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
+++ b/jobs/templates/released-heat-cicd-pike-dvr-sl.yml
@@ -221,12 +221,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    publishers:
-    - conditional-publisher:
-      - condition-kind: boolean-expression
-        condition-expression: $RUN_UPGRADE_AFTER_JOB
-        action:
-        - trigger-parameterized-builds:
-          - project: 'mcp-update-pike-sl'
-            condition: SUCCESS
-            trigger-with-no-params: true
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml b/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
index f302f90..4ddd929 100644
--- a/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
+++ b/jobs/templates/released-heat-cicd-queens-contrail41-sl.yml
@@ -224,12 +224,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    publishers:
-    - conditional-publisher:
-      - condition-kind: boolean-expression
-        condition-expression: $RUN_UPGRADE_AFTER_JOB
-        action:
-        - trigger-parameterized-builds:
-          - project: 'mcp-update-queens-contrail-sl'
-            condition: SUCCESS
-            trigger-with-no-params: true
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/released-heat-cicd-queens-dvr-sl.yml b/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
index 27a3263..01921e0 100644
--- a/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
+++ b/jobs/templates/released-heat-cicd-queens-dvr-sl.yml
@@ -221,12 +221,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
-    publishers:
-    - conditional-publisher:
-      - condition-kind: boolean-expression
-        condition-expression: $RUN_UPGRADE_AFTER_JOB
-        action:
-        - trigger-parameterized-builds:
-          - project: 'mcp-update-queens-dvr-sl'
-            condition: SUCCESS
-            trigger-with-no-params: true
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/self-deploy-jobs.yaml b/jobs/templates/self-deploy-jobs.yaml
index e04f62d..cfe3b99 100644
--- a/jobs/templates/self-deploy-jobs.yaml
+++ b/jobs/templates/self-deploy-jobs.yaml
@@ -20,3 +20,5 @@
           refspec: '${{TCP_QA_REFS}}'
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
       script-path: jobs/pipelines/self-deploy-jobs.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/self-deploy-virtulenvs.yaml b/jobs/templates/self-deploy-virtulenvs.yaml
index eb2c89b..75f6027 100644
--- a/jobs/templates/self-deploy-virtulenvs.yaml
+++ b/jobs/templates/self-deploy-virtulenvs.yaml
@@ -20,5 +20,7 @@
     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"
+    logrotate:
+      daysToKeep: 365
 
 
diff --git a/jobs/templates/swarm-deploy-cicd.yml b/jobs/templates/swarm-deploy-cicd.yml
index e999b96..5d24db3 100644
--- a/jobs/templates/swarm-deploy-cicd.yml
+++ b/jobs/templates/swarm-deploy-cicd.yml
@@ -69,3 +69,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-deploy-cicd.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/swarm-deploy-platform.yml b/jobs/templates/swarm-deploy-platform.yml
index 7971c41..f6a2270 100644
--- a/jobs/templates/swarm-deploy-platform.yml
+++ b/jobs/templates/swarm-deploy-platform.yml
@@ -70,3 +70,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-deploy-platform.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/swarm-run-pytest.yml b/jobs/templates/swarm-run-pytest.yml
index 36d9380..9d22f9d 100644
--- a/jobs/templates/swarm-run-pytest.yml
+++ b/jobs/templates/swarm-run-pytest.yml
@@ -84,3 +84,5 @@
           refspec: ${{TCP_QA_REFS}}
           url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa.git
       script-path: jobs/pipelines/swarm-run-pytest.groovy
+    logrotate:
+      daysToKeep: 365
diff --git a/jobs/templates/tcp-qa-ci.yml b/jobs/templates/tcp-qa-ci.yml
index 5a6f254..37529db 100644
--- a/jobs/templates/tcp-qa-ci.yml
+++ b/jobs/templates/tcp-qa-ci.yml
@@ -20,8 +20,6 @@
         - '**'
         url: https://review.gerrithub.io/Mirantis/tcp-qa
     triggers: []
-    logrotate:
-      daysToKeep: 365
     # wrappers:
     # - timeout:
     #     abort: true
diff --git a/jobs/templates/test-scenarios.yml b/jobs/templates/test-scenarios.yml
index af90602..67d3880 100644
--- a/jobs/templates/test-scenarios.yml
+++ b/jobs/templates/test-scenarios.yml
@@ -89,6 +89,8 @@
 
     jobs:
       - '{test_scenario}'
+    logrotate:
+      daysToKeep: 365
 
 - job-group:
     name: 'ceph-tests'
@@ -111,6 +113,8 @@
           display-name: Add/Remove MGR node
     jobs:
       - '{test_scenario}'
+    logrotate:
+      daysToKeep: 365
 
 - job-group:
     name: 'update-tests'
@@ -141,7 +145,7 @@
       tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
 
     test_scenario:
-      - mcp-update-pike-sl:
+      - mcp-update-pike-dvr-sl:
           deployment: released-heat-cicd-pike-dvr-sl
           disabled: true
           run-test-opts: '{test-opt}'
@@ -178,6 +182,8 @@
 
     jobs:
       - '{test_scenario}'
+    logrotate:
+      daysToKeep: 365
 
 ###################### JOB TEMPLATE ###################
 - job-template:
diff --git a/jobs/templates/test_cleanup.yml b/jobs/templates/test_cleanup.yml
index 6b6d31a..ddfb4df 100644
--- a/jobs/templates/test_cleanup.yml
+++ b/jobs/templates/test_cleanup.yml
@@ -11,4 +11,6 @@
           branches:
           - '*/master'
           url: https://github.com/sgudz/kaas.git
-      script-path: si_tests/utils/run-cleanup.groovy
\ No newline at end of file
+      script-path: si_tests/utils/run-cleanup.groovy
+    logrotate:
+      daysToKeep: 365
\ No newline at end of file