Add jenkins jobs
diff --git a/jenkins/client/job/gating.yml b/jenkins/client/job/gating.yml
new file mode 100644
index 0000000..0c4f9dd
--- /dev/null
+++ b/jenkins/client/job/gating.yml
@@ -0,0 +1,49 @@
+parameters:
+ jenkins:
+ client:
+ job_template:
+ gate-gerrit-namespace:
+ name: gate-gerrit-{{name}}
+ jobs:
+ - name: mk
+ - name: debian
+ - name: contrail
+ - name: salt-models
+ - name: salt-formulas
+ template:
+ discard:
+ build:
+ keep_num: 5
+ artifact:
+ keep_num: 5
+ type: workflow-scm
+ concurrent: true
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
+ credentials: "gerrit"
+ script: gating-pipeline.groovy
+ trigger:
+ gerrit:
+ project:
+ '{{name}}\/.*':
+ compare_type: REG_EXP
+ branches:
+ - master
+ skip_vote:
+ - successful
+ - failed
+ - unstable
+ - not_built
+ event:
+ comment:
+ - added:
+ verdictCategory: 'Workflow'
+ commentAddedTriggerApprovalValue: '+1'
+ param:
+ JOBS_NAMESPACE:
+ type: string
+ default: "{{name}}"
+ CREDENTIALS_ID:
+ type: string
+ default: "gerrit"
\ No newline at end of file