Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 1 | # |
| 2 | # Following job is about to simply execute Jenkinsfile of given Reclass model |
| 3 | # |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 5 | _param: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 6 | jenkins_salt_model_name: "salt" |
Filip Pytloun | a10976f | 2017-06-13 15:37:02 +0200 | [diff] [blame] | 7 | jenkins_salt_model_branch: "master" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 8 | jenkins: |
| 9 | client: |
| 10 | job_template: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 11 | update_salt_env: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 12 | name: deploy-update-{{name}} |
| 13 | jobs: |
Filip Pytloun | 56477b5 | 2017-03-16 15:43:37 +0100 | [diff] [blame] | 14 | - name: ${_param:jenkins_salt_model_name} |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 15 | salt_url: "${_param:jenkins_salt_api_url}" |
| 16 | salt_credentials: salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 17 | template: |
| 18 | display_name: "Deploy - update {{name}} environment" |
| 19 | type: workflow-scm |
| 20 | concurrent: false |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 21 | discard: |
| 22 | build: |
| 23 | keep_num: 10 |
| 24 | artifact: |
| 25 | keep_num: 10 |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 26 | scm: |
| 27 | type: git |
| 28 | url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}" |
Filip Pytloun | a10976f | 2017-06-13 15:37:02 +0200 | [diff] [blame] | 29 | branch: ${_param:jenkins_salt_model_branch} |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 30 | 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 Josef | 2450a39 | 2017-05-16 16:16:48 +0200 | [diff] [blame] | 39 | UPDATE_FORMULAS: |
| 40 | type: boolean |
| 41 | default: "true" |