blob: 0303aea0112e430f68473595438a729550aa7ee9 [file] [log] [blame]
Filip Pytloun260a9502017-03-16 12:47:22 +01001#
2# Following job is about to simply execute Jenkinsfile of given Reclass model
3#
Filip Pytloun7af94b32017-03-14 18:38:52 +01004parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01005 _param:
6 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
7 jenkins_salt_model_name: "salt"
Filip Pytloun7af94b32017-03-14 18:38:52 +01008 jenkins:
9 client:
10 job_template:
Filip Pytloun260a9502017-03-16 12:47:22 +010011 update_salt_env:
Filip Pytloun7af94b32017-03-14 18:38:52 +010012 name: deploy-update-{{name}}
13 jobs:
Filip Pytloun56477b52017-03-16 15:43:37 +010014 - name: ${_param:jenkins_salt_model_name}
Filip Pytloun260a9502017-03-16 12:47:22 +010015 salt_url: "${_param:jenkins_salt_api_url}"
16 salt_credentials: salt
Filip Pytloun7af94b32017-03-14 18:38:52 +010017 template:
18 display_name: "Deploy - update {{name}} environment"
19 type: workflow-scm
20 concurrent: false
21 scm:
22 type: git
23 url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}"
24 credentials: "gerrit"
25 script: Jenkinsfile
26 param:
27 SALT_MASTER_URL:
28 type: string
29 default: "{{salt_url}}"
30 SALT_MASTER_CREDENTIALS:
31 type: string
32 default: "{{salt_credentials}}"