Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | 8717b86 | 2018-06-29 16:06:47 -0700 | [diff] [blame] | 2 | # xos-rest-gw unit test |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 3 | |
Kailash Khalasi | 4d2e5d6 | 2018-05-21 10:01:05 -0700 | [diff] [blame] | 4 | - job-template: |
Zack Williams | 8717b86 | 2018-06-29 16:06:47 -0700 | [diff] [blame] | 5 | id: 'xos-rest-gw-unit' |
| 6 | name: '{id}' |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 7 | |
| 8 | description: | |
| 9 | <!-- Managed by Jenkins Job Builder --> |
Zack Williams | 8717b86 | 2018-06-29 16:06:47 -0700 | [diff] [blame] | 10 | Created by {id} job-template from ci-management/jjb/xos-rest-gw-unit.yaml |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 11 | Test for the XOS Rest Gateway that combine REST APIs and WebSocket |
| 12 | |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 13 | properties: |
| 14 | - cord-infra-properties: |
| 15 | build-days-to-keep: '{build-days-to-keep}' |
| 16 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 17 | |
| 18 | # `npm install` can take >10m depending on connectivity |
| 19 | wrappers: |
| 20 | - lf-infra-wrappers: |
| 21 | build-timeout: 20 |
| 22 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 23 | |
Kailash Khalasi | 4d2e5d6 | 2018-05-21 10:01:05 -0700 | [diff] [blame] | 24 | triggers: |
| 25 | - cord-infra-gerrit-trigger-patchset: |
| 26 | gerrit-server-name: '{gerrit-server-name}' |
Zack Williams | 8717b86 | 2018-06-29 16:06:47 -0700 | [diff] [blame] | 27 | project-regexp: '^{project}$' |
| 28 | branch-regexp: '{branch-regexp}' |
Kailash Khalasi | 4d2e5d6 | 2018-05-21 10:01:05 -0700 | [diff] [blame] | 29 | dependency-jobs: '{dependency-jobs}' |
| 30 | file-include-regexp: '{all-files-regexp}' |
| 31 | |
Zack Williams | 16fa7aa | 2018-06-29 14:55:58 -0700 | [diff] [blame] | 32 | scm: |
| 33 | - lf-infra-gerrit-scm: |
| 34 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 35 | refspec: '$GERRIT_REFSPEC' |
| 36 | branch: '$GERRIT_BRANCH' |
| 37 | submodule-recursive: 'false' |
| 38 | choosing-strategy: gerrit |
| 39 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 40 | |
| 41 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 42 | project-type: freestyle |
| 43 | concurrent: true |
| 44 | |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 45 | builders: |
| 46 | - shell: | |
| 47 | #/usr/bin/env bash |
Zack Williams | 16fa7aa | 2018-06-29 14:55:58 -0700 | [diff] [blame] | 48 | set -eu -o pipefail |
| 49 | |
Kailash Khalasi | 0f528d8 | 2018-05-17 18:39:28 -0700 | [diff] [blame] | 50 | npm install |
| 51 | npm test |
Zack Williams | 16fa7aa | 2018-06-29 14:55:58 -0700 | [diff] [blame] | 52 | |