Add schema for jenkins formula
Change-Id: Iadf3199a1cdcda64f892ada9ecc1379a306549ef
Related-prod: PROD:20632
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
index 3d2cd31..ca1cc5c 100644
--- a/tests/pillar/client.sls
+++ b/tests/pillar/client.sls
@@ -39,7 +39,7 @@
trigger:
timer:
spec: "H H * * *"
- github:
+ github: {}
pollscm:
spec: "H/15 * * * *"
reverse:
@@ -64,6 +64,34 @@
type: text
description: multi-liner
default: default_text
+ job_template:
+ template_name:
+ jobs:
+ - name: os
+ salt_url: http://localhost:6969
+ name: deploy-\{\{name}}
+ template:
+ concurrent: false
+ discard:
+ artifact:
+ keep_num: 10
+ build:
+ keep_num: 10
+ display_name: Deploy \{\{name}}
+ param:
+ SALT_MASTER_URL:
+ default: '\{\{salt_url}}'
+ type: string
+ trigger:
+ pollscm:
+ spec: "H/60 * * * *"
+ scm:
+ branch: master
+ credentials: gerrit
+ script: Jenkinsfile
+ type: git
+ url: ssh://admin@localhost:29418/project/\{\{name}}
+ type: workflow-scm
approved_scripts:
- method groovy.json.JsonSlurperClassic parseText java.lang.String
java:
diff --git a/tests/pillar/job_builder.sls b/tests/pillar/job_builder.sls
new file mode 100644
index 0000000..cfdcb26
--- /dev/null
+++ b/tests/pillar/job_builder.sls
@@ -0,0 +1,23 @@
+jenkins:
+ job_builder:
+ enabled: true
+ config:
+ address: https://github.com/test/job_builder.git
+ branch: master
+git:
+ client:
+ enabled: true
+ disable_ssl_verification: True
+ user:
+ - user:
+ name: jdoe
+ email: j@doe.com
+linux:
+ system:
+ enabled: true
+ user:
+ jdoe:
+ enabled: true
+ sudo: true
+ full_name: John Doe
+ home: /home/jdoe