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 | 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 |
| 21 | scm: |
| 22 | type: git |
| 23 | url: "${_param:jenkins_gerrit_url}/salt-models/{{name}}" |
| 24 | credentials: "gerrit" |
| 25 | script: Jenkinsfile |
| 26 | param: |
| 27 | SALT_MASTER_URL: |
| 28 | type: string |
| 29 | default: "{{salt_url}}" |
| 30 | SALT_MASTER_CREDENTIALS: |
| 31 | type: string |
| 32 | default: "{{salt_credentials}}" |