blob: 1ce14947985a316a6b91d1b8e26c0f4c23e26eb9 [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 Pytlouna10976f2017-06-13 15:37:02 +02008 jenkins_salt_model_branch: "master"
Filip Pytloun7af94b32017-03-14 18:38:52 +01009 jenkins:
10 client:
11 job_template:
Filip Pytloun260a9502017-03-16 12:47:22 +010012 update_salt_env:
Filip Pytloun7af94b32017-03-14 18:38:52 +010013 name: deploy-update-{{name}}
14 jobs:
Filip Pytloun56477b52017-03-16 15:43:37 +010015 - name: ${_param:jenkins_salt_model_name}
Filip Pytloun260a9502017-03-16 12:47:22 +010016 salt_url: "${_param:jenkins_salt_api_url}"
17 salt_credentials: salt
Filip Pytloun7af94b32017-03-14 18:38:52 +010018 template:
19 display_name: "Deploy - update {{name}} environment"
20 type: workflow-scm
21 concurrent: false
22 scm:
23 type: git
24 url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}"
Filip Pytlouna10976f2017-06-13 15:37:02 +020025 branch: ${_param:jenkins_salt_model_branch}
Filip Pytloun7af94b32017-03-14 18:38:52 +010026 credentials: "gerrit"
27 script: Jenkinsfile
28 param:
29 SALT_MASTER_URL:
30 type: string
31 default: "{{salt_url}}"
32 SALT_MASTER_CREDENTIALS:
33 type: string
34 default: "{{salt_credentials}}"
Jakub Josef2450a392017-05-16 16:16:48 +020035 UPDATE_FORMULAS:
36 type: boolean
37 default: "true"