Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins: |
| 4 | client: |
| 5 | job_template: |
| 6 | test_salt_model: |
| 7 | name: test-salt-model-{{name}} |
| 8 | param: |
| 9 | name: |
| 10 | - mcp-baremetal-lab |
| 11 | - mcp-virtual-lab |
| 12 | - mk-ci |
| 13 | - qa |
| 14 | - stacklight |
| 15 | - training |
| 16 | template: |
| 17 | type: workflow-scm |
| 18 | scm: |
| 19 | type: git |
| 20 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 21 | credentials: "gerrit" |
| 22 | script: test-salt-models-pipeline.groovy |
| 23 | concurrent: true |
| 24 | trigger: |
| 25 | gerrit: |
| 26 | project: |
| 27 | salt-models/{{name}}: |
| 28 | branches: |
| 29 | - master |
| 30 | event: |
| 31 | patchset: |
| 32 | - created: |
| 33 | excludeDrafts: false |
| 34 | excludeTrivialRebase: false |
| 35 | excludeNoCodeChange: false |
| 36 | comment: |
| 37 | - addedContains: |
| 38 | commentAddedCommentContains: '(recheck|reverify)' |
| 39 | param: |
| 40 | SALT_OPTS: |
| 41 | type: string |
| 42 | default: "--force-color" |
| 43 | GIT_URL: |
| 44 | type: string |
| 45 | default: "${_param:jenkins_gerrit_url}/salt-models/{{name}}" |
| 46 | RECLASS_SYSTEM_GIT_URL: |
| 47 | type: string |
| 48 | description: "Run against alternate system reclass" |
| 49 | RECLASS_SYSTEM_GIT_REF: |
| 50 | type: string |
| 51 | CREDENTIALS_ID: |
| 52 | type: string |
| 53 | default: "gerrit" |
| 54 | test_system_reclass: |
| 55 | name: test-salt-model-{{name}} |
| 56 | jobs: |
| 57 | - name: reclass-system |
| 58 | clusters: "mcp-baremetal-lab,mcp-virtual-lab,qa,stacklight,training" |
| 59 | template: |
| 60 | type: workflow-scm |
| 61 | scm: |
| 62 | type: git |
| 63 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 64 | credentials: "gerrit" |
| 65 | script: test-system-reclass-pipeline.groovy |
| 66 | concurrent: true |
| 67 | trigger: |
| 68 | gerrit: |
| 69 | project: |
| 70 | salt-models/{{name}}: |
| 71 | branches: |
| 72 | - master |
| 73 | event: |
| 74 | patchset: |
| 75 | - created: |
| 76 | excludeDrafts: false |
| 77 | excludeTrivialRebase: false |
| 78 | excludeNoCodeChange: false |
| 79 | comment: |
| 80 | - addedContains: |
| 81 | commentAddedCommentContains: '(recheck|reverify)' |
| 82 | param: |
| 83 | TEST_MODELS: |
| 84 | type: string |
| 85 | default: "{{clusters}}" |