summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-c.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/global-templates-c.yaml')
-rw-r--r--jjb/global-templates-c.yaml36
1 files changed, 32 insertions, 4 deletions
diff --git a/jjb/global-templates-c.yaml b/jjb/global-templates-c.yaml
index 40c517063..38a06ce34 100644
--- a/jjb/global-templates-c.yaml
+++ b/jjb/global-templates-c.yaml
@@ -52,10 +52,6 @@
publishers:
- lf-infra-publish
-#################
-# JOB TEMPLATES #
-#################
-
- job-template:
#
# job template for build C/C++ project
@@ -105,3 +101,35 @@
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