blob: f2b38d2d09e51f46c2f394be429e228c889a47cb [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:
Filip Pytloun260a9502017-03-16 12:47:22 +01006 jenkins_salt_model_name: "salt"
Filip Pytlouna10976f2017-06-13 15:37:02 +02007 jenkins_salt_model_branch: "master"
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
Alexander Evseev4589d712018-08-03 12:36:15 +020021 discard:
22 build:
23 keep_num: 10
24 artifact:
25 keep_num: 10
Filip Pytloun7af94b32017-03-14 18:38:52 +010026 scm:
27 type: git
28 url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}"
Filip Pytlouna10976f2017-06-13 15:37:02 +020029 branch: ${_param:jenkins_salt_model_branch}
Filip Pytloun7af94b32017-03-14 18:38:52 +010030 credentials: "gerrit"
31 script: Jenkinsfile
32 param:
33 SALT_MASTER_URL:
34 type: string
35 default: "{{salt_url}}"
36 SALT_MASTER_CREDENTIALS:
37 type: string
38 default: "{{salt_credentials}}"
Jakub Josef2450a392017-05-16 16:16:48 +020039 UPDATE_FORMULAS:
40 type: boolean
41 default: "true"