blob: 3c4ff46330910d9e03b8759b87d7ac7f4c190992 [file] [log] [blame]
Kailash Khalasi0f528d82018-05-17 18:39:28 -07001---
Zack Williams8717b862018-06-29 16:06:47 -07002# xos-rest-gw unit test
Kailash Khalasi0f528d82018-05-17 18:39:28 -07003
Kailash Khalasi4d2e5d62018-05-21 10:01:05 -07004- job-template:
Zack Williams8717b862018-06-29 16:06:47 -07005 id: 'xos-rest-gw-unit'
6 name: '{id}'
Kailash Khalasi0f528d82018-05-17 18:39:28 -07007
8 description: |
9 <!-- Managed by Jenkins Job Builder -->
Zack Williams8717b862018-06-29 16:06:47 -070010 Created by {id} job-template from ci-management/jjb/xos-rest-gw-unit.yaml
Kailash Khalasi0f528d82018-05-17 18:39:28 -070011 Test for the XOS Rest Gateway that combine REST APIs and WebSocket
12
Kailash Khalasi0f528d82018-05-17 18:39:28 -070013 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 Khalasi4d2e5d62018-05-21 10:01:05 -070024 triggers:
25 - cord-infra-gerrit-trigger-patchset:
26 gerrit-server-name: '{gerrit-server-name}'
Zack Williams8717b862018-06-29 16:06:47 -070027 project-regexp: '^{project}$'
28 branch-regexp: '{branch-regexp}'
Kailash Khalasi4d2e5d62018-05-21 10:01:05 -070029 dependency-jobs: '{dependency-jobs}'
30 file-include-regexp: '{all-files-regexp}'
31
Zack Williams16fa7aa2018-06-29 14:55:58 -070032 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 Khalasi0f528d82018-05-17 18:39:28 -070045 builders:
46 - shell: |
47 #/usr/bin/env bash
Zack Williams16fa7aa2018-06-29 14:55:58 -070048 set -eu -o pipefail
49
Kailash Khalasi0f528d82018-05-17 18:39:28 -070050 npm install
51 npm test
Zack Williams16fa7aa2018-06-29 14:55:58 -070052