Mikhail Ivanov | ea087ed | 2018-03-27 18:50:01 +0400 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job_template: |
| 5 | docker-build-saas: |
| 6 | name: docker-image-build-saas-{{subproject}}-{{name}} |
| 7 | jobs: |
| 8 | - name: auth |
| 9 | subproject: core |
| 10 | - name: application |
| 11 | subproject: core |
| 12 | - name: ui |
| 13 | subproject: frontend |
| 14 | template: |
| 15 | discard: |
| 16 | build: |
| 17 | keep_num: 25 |
| 18 | artifact: |
| 19 | keep_num: 25 |
| 20 | type: workflow-scm |
| 21 | concurrent: false |
| 22 | scm: |
| 23 | type: git |
| 24 | url: "${_param:jenkins_gerrit_url}/oss/jenkins/pipelines" |
| 25 | credentials: "gerrit" |
| 26 | script: docker-build-image-pipeline.groovy |
| 27 | trigger: |
| 28 | gerrit: |
| 29 | project: |
| 30 | 'saas\/{{subproject}}\/{{name}}': |
| 31 | compare_type: REG_EXP |
| 32 | branches: |
| 33 | - master |
| 34 | skip_vote: |
| 35 | - successful |
| 36 | - failed |
| 37 | - unstable |
| 38 | - not_built |
| 39 | event: |
| 40 | patchset: |
| 41 | - create: |
| 42 | excludeDrafts: false |
| 43 | excludeNoCodeChange: false |
| 44 | change: |
| 45 | - merged |
| 46 | comment: |
| 47 | - addedContains: |
| 48 | commentAddedCommentContains: '^(?s:Patch Set \d+:.*(rebuild)\s*)$' |
| 49 | param: |
| 50 | IMAGE_NAME: |
| 51 | type: string |
| 52 | default: "saas-{{name}}" |
| 53 | IMAGE_TAGS: |
| 54 | type: string |
| 55 | default: "" |
| 56 | CONTEXT_PATH: |
| 57 | type: string |
| 58 | default: "." |
| 59 | CREDENTIALS_ID: |
| 60 | type: string |
| 61 | default: "gerrit" |
| 62 | DOCKERFILE_PATH: |
| 63 | type: string |
| 64 | default: "Dockerfile" |
| 65 | DOCKER_REGISTRY: |
| 66 | type: string |
| 67 | default: "docker-dev-virtual.docker.mirantis.net" |
| 68 | PROJECT_NAMESPACE: |
| 69 | type: string |
| 70 | default: "saas" |