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