PROD-36999 Fix and to JJB the generate-report job

Change-Id: Ibe0bdbaa7d06354195b2ef30a416d590ccd2ad2a
diff --git a/jobs/templates/generate-report.yml b/jobs/templates/generate-report.yml
new file mode 100644
index 0000000..ea78ca0
--- /dev/null
+++ b/jobs/templates/generate-report.yml
@@ -0,0 +1,66 @@
+- job-template:
+    project-type: freestyle
+    description: "{job-description}
+        Define DATE to define a specific Test Plan with name like  [2019.2.0-update]System-$REPOSITORY_SUITE-$DATE
+        or define PLAN_NAME if you know it"
+    concurrent: true
+    disabled: false
+    name: generate-report
+    logrotate:
+      daysToKeep: 365
+    parameters:
+      - string:
+          default: ''
+          description: YYYY-MM-DD
+          name: DATE
+          trim: 'false'
+      - string:
+          default: '2019.2.0'
+          description:
+          name: REPOSITORY_SUITE
+          trim: 'false'
+      - string:
+          default: ''
+          description:
+          name: PLAN_NAME
+          trim: 'false'
+      - string:
+          default: ''
+          description: ''
+          name: TCP_QA_REFS
+          trim: 'true'
+    triggers:
+      - timed: H 9-22/2 * * *
+    scm:
+      - git:
+          branches:
+            - FETCH_HEAD
+          refspec: '${{TCP_QA_REFS}}'
+          url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
+    wrappers:
+      - inject:
+            properties-content: |-
+              CUSTOM_REPO_VENV_PATH=/home/jenkins/venv_testrail_reporter
+              VENV_PATH=/home/jenkins/testrail_report
+      - credentials-binding:
+          - username-password-separated:
+                credential-id: testrail_system_tests
+                username: TESTRAIL_USER_EMAIL
+                password: TESTRAIL_USER_KEY
+          - username-password-separated:
+                credential-id: jira-user
+                username: JIRA_USER
+                password: JIRA_PWD
+    builders:
+      - shell: "chmod +x jobs/pipelines/generate-report.sh"
+      - shell: "./jobs/pipelines/generate-report.sh"
+    publishers:
+      - archive:
+          artifacts: '**/*_bug_report_*.html'
+          allow-empty: false
+      - workspace-cleanup:
+          include:
+            - '*.html'
+
+
+