blob: 734a4e5e905a6faa7a3d96e650b24491c1f63463 [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
Alexander Evseev4589d712018-08-03 12:36:15 +020022 discard:
23 build:
24 keep_num: 10
25 artifact:
26 keep_num: 10
Filip Pytloun7af94b32017-03-14 18:38:52 +010027 scm:
28 type: git
29 url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}"
Filip Pytlouna10976f2017-06-13 15:37:02 +020030 branch: ${_param:jenkins_salt_model_branch}
Filip Pytloun7af94b32017-03-14 18:38:52 +010031 credentials: "gerrit"
32 script: Jenkinsfile
33 param:
34 SALT_MASTER_URL:
35 type: string
36 default: "{{salt_url}}"
37 SALT_MASTER_CREDENTIALS:
38 type: string
39 default: "{{salt_credentials}}"
Jakub Josef2450a392017-05-16 16:16:48 +020040 UPDATE_FORMULAS:
41 type: boolean
42 default: "true"