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: |
| 6 | jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
| 7 | jenkins_salt_model_name: "salt" |
Filip Pytloun | a10976f | 2017-06-13 15:37:02 +0200 | [diff] [blame] | 8 | jenkins_salt_model_branch: "master" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 9 | jenkins: |
| 10 | client: |
| 11 | job_template: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 12 | update_salt_env: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 13 | name: deploy-update-{{name}} |
| 14 | jobs: |
Filip Pytloun | 56477b5 | 2017-03-16 15:43:37 +0100 | [diff] [blame] | 15 | - name: ${_param:jenkins_salt_model_name} |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 16 | salt_url: "${_param:jenkins_salt_api_url}" |
| 17 | salt_credentials: salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 18 | 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 Pytloun | a10976f | 2017-06-13 15:37:02 +0200 | [diff] [blame] | 25 | branch: ${_param:jenkins_salt_model_branch} |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 26 | 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 Josef | 2450a39 | 2017-05-16 16:16:48 +0200 | [diff] [blame] | 35 | UPDATE_FORMULAS: |
| 36 | type: boolean |
| 37 | default: "true" |