Add backup job
Change-Id: I20a0babfac6e28010afb9d56184fa773d86b3254
diff --git a/jobs/templates/self-backup-jenkins-files.yaml b/jobs/templates/self-backup-jenkins-files.yaml
new file mode 100644
index 0000000..543eed2
--- /dev/null
+++ b/jobs/templates/self-backup-jenkins-files.yaml
@@ -0,0 +1,26 @@
+---
+- job-template:
+ project-type: pipeline
+ concurrent: false
+ disabled: false
+ description: '{job-description}'
+ name: self-backup-jenkins-files
+ triggers:
+ - timed: '{obj:trigger_time}'
+ parameters:
+ - string:
+ default: 'master'
+ description: 'tcp-qa review refspec'
+ name: TCP_QA_REFS
+ trim: 'true'
+ 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/self-backup-jenkins-files.groovy
+ logrotate:
+ daysToKeep: 365