Ilya Kharin | 8450eb8 | 2017-03-29 16:56:06 +0400 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job: |
Mikhail Ivanov | 65c1a65 | 2017-04-11 17:35:37 +0400 | [diff] [blame] | 5 | test-oss-devops-portal: |
| 6 | name: test-oss-devops-portal |
Ilya Kharin | 8450eb8 | 2017-03-29 16:56:06 +0400 | [diff] [blame] | 7 | discard: |
| 8 | build: |
| 9 | keep_num: 10 |
| 10 | artifact: |
| 11 | keep_num: 10 |
| 12 | type: workflow-scm |
| 13 | concurrent: true |
| 14 | scm: |
| 15 | type: git |
| 16 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 17 | credentials: "gerrit" |
| 18 | script: test-nodejs-pipeline.groovy |
| 19 | trigger: |
| 20 | gerrit: |
| 21 | project: |
| 22 | "oss/devops-portal": |
| 23 | branches: |
| 24 | - master |
| 25 | event: |
| 26 | patchset: |
| 27 | - created: |
| 28 | excludeDrafts: false |
| 29 | excludeTrivialRebase: false |
| 30 | excludeNoCodeChange: false |
| 31 | comment: |
| 32 | - addedContains: |
| 33 | commentAddedCommentContains: '(recheck|reverify)' |
| 34 | param: |
Mikhail Ivanov | 05619a6 | 2017-05-17 12:56:21 +0400 | [diff] [blame] | 35 | COMPOSE_PATH: |
| 36 | type: string |
| 37 | default: "docker/stack/docker-compose.yml" |
Ilya Kharin | 8450eb8 | 2017-03-29 16:56:06 +0400 | [diff] [blame] | 38 | CREDENTIALS_ID: |
| 39 | type: string |
| 40 | default: "gerrit" |
Mikhail Ivanov | 3d42208 | 2017-05-17 18:44:13 +0400 | [diff] [blame^] | 41 | JSON_CONFIG: |
| 42 | type: string |
| 43 | default: '{"services": {"elasticsearch": {"endpoint": "http://elasticsearch:9200"}}}' |
Ilya Kharin | 8450eb8 | 2017-03-29 16:56:06 +0400 | [diff] [blame] | 44 | NODE_IMAGE: |
| 45 | type: string |
| 46 | default: "docker-sandbox.sandbox.mirantis.net/ikharin/ci/node-firefox:6.10" |
| 47 | COMMANDS: |
Ilya Kharin | 7d5641c | 2017-03-31 11:39:31 +0400 | [diff] [blame] | 48 | type: text |
| 49 | default: | |
| 50 | npm run lint |
| 51 | npm run test:unit |
| 52 | npm run test:functional |
Mikhail Ivanov | b77f39a | 2017-04-13 17:05:28 +0400 | [diff] [blame] | 53 | DEFAULT_GIT_URL: |
| 54 | type: string |
| 55 | default: "${_param:jenkins_gerrit_url}/oss/devops-portal" |
| 56 | DEFAULT_GIT_REF: |
| 57 | type: string |
| 58 | default: master |