Adding DMaaP DR self release jobs
[ci-management.git] / jjb / global-templates-c.yaml
index 40c5170..38a06ce 100644 (file)
     publishers:
       - lf-infra-publish
 
-#################
-# JOB TEMPLATES #
-#################
-
 - job-template:
     #
     # job template for build C/C++ project
           settings-file: '{mvn-settings}'
       - docker-login
       - shell: '{script}'
+
+- job-template:
+    #
+    # job template for build project executed every 6hrs
+    #
+    # Required Variables:
+    #   script:         build script to execute
+    name: '{name}-{stream}-shell-6hrs'
+    node: '{build-node}'
+    type: freestyle
+
+    parameters:
+      - lf-infra-parameters:
+          branch: '{branch}'
+          project: '{project}'
+          stream: '{stream}'
+          lftools-version: '{lftools-version}'
+
+    scm:
+      - gerrit-trigger-scm:
+          refspec: '$GERRIT_REFSPEC'
+          submodule-recursive: '{submodule-recursive}'
+          choosing-strategy: 'gerrit'
+
+    triggers:
+      - timed: '00 */6 * * *'
+
+    builders:
+      - shell: '{script}'
+
+    publishers:
+      - lf-infra-publish